linux/drivers/media
Greg Kroah-Hartman 6332a6ced6 media: pvrusb2: clean up unneeded complexity in pvrusb2 class logic
The pvrusb2 driver struct class logic was dynamically creating a class
that should have just been static as it did not do anything special and
was only a wrapper around a stock "struct class" implementation.  Clean
this all up by making a static struct class and modifying the code to
correctly reference it.

By doing so, lots of unneeded lines of code were removed, and #ifdef
logic was cleaned up so that the .c files are not cluttered up with
extra complexity following the proper kernel coding style.

Cc: Mike Isely <isely@pobox.com>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: linux-media@vger.kernel.org
Reviewed-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Link: https://lore.kernel.org/r/20230329060132.2688621-1-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-03-31 11:04:10 +02:00
..
cec media: Switch to use dev_err_probe() helper 2022-12-07 17:58:46 +01:00
common media updates for v6.3-rc1 2023-02-26 11:47:26 -08:00
dvb-core driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
dvb-frontends media: dvb-frontends: mb86a16.c: always use the same error path 2023-02-08 08:40:13 +01:00
firewire media: Makefiles: remove extra spaces 2022-03-12 16:59:52 +01:00
i2c media: i2c: ov7670: 0 instead of -EINVAL was returned 2023-02-08 08:39:50 +01:00
mc media: mc: entity: Fix minor issues in comments and documentation 2023-02-06 08:37:12 +01:00
mmc media: media/*/Kconfig: sort entries 2022-03-18 05:58:35 +01:00
pci drivers: remove struct module * setting from struct class 2023-03-17 15:16:27 +01:00
platform ARM: SoC drivers for 6.3 2023-02-27 10:04:49 -08:00
radio media: radio/wl128x: remove unnecessary (void*) conversions 2023-02-08 07:26:02 +01:00
rc driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
spi media updates for v5.18-rc1 2022-03-23 14:51:35 -07:00
test-drivers media: visl: make visl_qops static 2023-02-08 08:29:53 +01:00
tuners media: tuners/si2157: Convert to i2c's .probe_new() 2023-01-22 08:33:25 +01:00
usb media: pvrusb2: clean up unneeded complexity in pvrusb2 class logic 2023-03-31 11:04:10 +02:00
v4l2-core media updates for v6.3-rc1 2023-02-26 11:47:26 -08:00
Kconfig media: Kconfig: Make DVB_CORE=m possible when MEDIA_SUPPORT=y 2022-12-07 17:58:46 +01:00
Makefile media: Makefiles: remove extra spaces 2022-03-12 16:59:52 +01:00