media: atomisp-mt9m114: adjust macro parameter name
authorJulia Lawall <Julia.Lawall@inria.fr>
Wed, 15 Mar 2023 09:09:04 +0000 (09:09 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 29 Apr 2024 13:51:36 +0000 (14:51 +0100)
The macro parameter name, sd, captures the field name in the third
argument of container_of.  Fortunately, the argument at all uses is
actually sd.  But change the macro parameter name anyway, for a little
added safety.

Link: https://lore.kernel.org/linux-media/20230315090904.20092-1-Julia.Lawall@inria.fr
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/i2c/atomisp-mt9m114.c

index 03ebee976d5b42e0f10d00f775963e66ea186826..23b1001c2a55c371b2509b6e82a96076600d1620 100644 (file)
@@ -35,7 +35,7 @@
 
 #include "mt9m114.h"
 
-#define to_mt9m114_sensor(sd) container_of(sd, struct mt9m114_device, sd)
+#define to_mt9m114_sensor(s) container_of(s, struct mt9m114_device, sd)
 
 /*
  * TODO: use debug parameter to actually define when debug messages should