]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: cx18: Remove unused cx18_reset_ir_gpio
authorDr. David Alan Gilbert <linux@treblig.org>
Sat, 12 Oct 2024 23:39:32 +0000 (00:39 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 11 Dec 2024 18:48:17 +0000 (19:48 +0100)
cx18_reset_ir_gpio() has been unused in tree since 2009
commit eefe1010a465 ("V4L/DVB (10759): cx18: Convert GPIO connected
functions to act as v4l2_subdevices")

It has a comment saying it's exported for use by 'lirc_pvr150' but I don't
see any sign of it in the lirc git, and I see it removed support
for lirc_i2c.c 'Flavors of the Hauppage PVR-150...' in 2014.

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/pci/cx18/cx18-gpio.c
drivers/media/pci/cx18/cx18-gpio.h

index c85eb8d2583702ccefd9e211072ccd4969eb98dc..485a6cbeb15a51aa0d2e5aeb5d2ab266668bc387 100644 (file)
@@ -305,21 +305,6 @@ int cx18_gpio_register(struct cx18 *cx, u32 hw)
        return v4l2_device_register_subdev(&cx->v4l2_dev, sd);
 }
 
-void cx18_reset_ir_gpio(void *data)
-{
-       struct cx18 *cx = to_cx18(data);
-
-       if (cx->card->gpio_i2c_slave_reset.ir_reset_mask == 0)
-               return;
-
-       CX18_DEBUG_INFO("Resetting IR microcontroller\n");
-
-       v4l2_subdev_call(&cx->sd_resetctrl,
-                        core, reset, CX18_GPIO_RESET_Z8F0811);
-}
-EXPORT_SYMBOL(cx18_reset_ir_gpio);
-/* This symbol is exported for use by lirc_pvr150 for the IR-blaster */
-
 /* Xceive tuner reset function */
 int cx18_reset_tuner_gpio(void *dev, int component, int cmd, int value)
 {
index 0fa4c7ad22866f4d9ded2e53600f3e65ad17925f..8d5797dea7f587b3d2cacc8d523a871934c90d8f 100644 (file)
@@ -17,5 +17,4 @@ enum cx18_gpio_reset_type {
        CX18_GPIO_RESET_XC2028  = 2,
 };
 
-void cx18_reset_ir_gpio(void *data);
 int cx18_reset_tuner_gpio(void *dev, int component, int cmd, int value);