Skip to content

Commit aca32d7

Browse files
geerturafaeljw
authored andcommitted
power: avs: smartreflex: Remove superfluous cast in debugfs_create_file() call
There is no need to cast a typed pointer to a void pointer when calling a function that accepts the latter. Remove it, as the cast prevents further compiler checks. Signed-off-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 31f4f5b commit aca32d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/power/avs/smartreflex.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ static int omap_sr_probe(struct platform_device *pdev)
905905
sr_info->dbg_dir = debugfs_create_dir(sr_info->name, sr_dbg_dir);
906906

907907
debugfs_create_file("autocomp", S_IRUGO | S_IWUSR, sr_info->dbg_dir,
908-
(void *)sr_info, &pm_sr_fops);
908+
sr_info, &pm_sr_fops);
909909
debugfs_create_x32("errweight", S_IRUGO, sr_info->dbg_dir,
910910
&sr_info->err_weight);
911911
debugfs_create_x32("errmaxlimit", S_IRUGO, sr_info->dbg_dir,

0 commit comments

Comments
 (0)