]> git.ipfire.org Git - thirdparty/linux.git/commit
media: atomisp: gc0310: Rename "dev" function variable to "sensor"
authorHans de Goede <hansg@kernel.org>
Fri, 4 Jul 2025 19:17:29 +0000 (21:17 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 8 Jul 2025 06:43:28 +0000 (08:43 +0200)
commite3b95e64d508d0e869d3fb7bdef6559f976bbdef
treeb8f136c93a25a85f9d8e6d40ba1a84cf3f61825f
parented3bc38ff5cbc431f9b155610046f8f404437bb5
media: atomisp: gc0310: Rename "dev" function variable to "sensor"

Many functions on the gc0310 driver use a function local variable called
"dev" but these variable's type is not "struct device *" type as one would
expect based on the name. Instead they point to the gc0310 driver data
struct.

Rename these variables to sensor to make their purpose more clear.

Signed-off-by: Hans de Goede <hansg@kernel.org>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Link: https://lore.kernel.org/r/20250517114106.43494-2-hdegoede@redhat.com
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/i2c/atomisp-gc0310.c