mbox series

[0/6] media: Use str_enable_disable-like helpers

Message ID 20250114-str-enable-disable-media-v1-0-9316270aa65f@linaro.org (mailing list archive)
Headers show
Series media: Use str_enable_disable-like helpers | expand

Message

Krzysztof Kozlowski Jan. 14, 2025, 7:46 p.m. UTC
Simple refactoring to replace ternary operator for string pairs like
"enable/disable".

Best regards,
Krzysztof

---
Krzysztof Kozlowski (6):
      media: Use str_enable_disable-like helpers
      media: dvb: Use str_enable_disable-like helpers
      media: i2c: Use str_enable_disable-like helpers
      media: pci: Use str_enable_disable-like helpers
      media: platform: Use str_enable_disable-like helpers
      media: usb: Use str_enable_disable-like helpers

 drivers/media/cec/platform/cec-gpio/cec-gpio.c     |  5 ++-
 drivers/media/cec/usb/pulse8/pulse8-cec.c          |  5 ++-
 drivers/media/common/b2c2/flexcop-hw-filter.c      |  5 ++-
 drivers/media/common/siano/sms-cards.c             |  3 +-
 drivers/media/common/videobuf2/videobuf2-core.c    |  6 ++-
 drivers/media/dvb-frontends/ascot2e.c              |  3 +-
 drivers/media/dvb-frontends/cx24120.c              |  5 ++-
 drivers/media/dvb-frontends/cxd2841er.c            |  3 +-
 drivers/media/dvb-frontends/drxk_hard.c            |  5 ++-
 drivers/media/dvb-frontends/helene.c               |  3 +-
 drivers/media/dvb-frontends/horus3a.c              |  3 +-
 drivers/media/dvb-frontends/sp2.c                  |  3 +-
 drivers/media/i2c/adv7511-v4l2.c                   | 10 ++---
 drivers/media/i2c/adv7604.c                        | 43 ++++++++++----------
 drivers/media/i2c/adv7842.c                        | 46 ++++++++++------------
 drivers/media/i2c/cx25840/cx25840-core.c           |  5 ++-
 drivers/media/i2c/cx25840/cx25840-ir.c             | 35 ++++++++--------
 drivers/media/i2c/max9286.c                        |  3 +-
 drivers/media/i2c/msp3400-driver.c                 |  5 ++-
 drivers/media/i2c/saa7110.c                        |  3 +-
 drivers/media/i2c/saa7115.c                        |  4 +-
 drivers/media/i2c/saa7127.c                        | 13 +++---
 drivers/media/i2c/saa717x.c                        |  3 +-
 drivers/media/i2c/tc358743.c                       | 43 +++++++++-----------
 drivers/media/i2c/tda1997x.c                       |  7 ++--
 drivers/media/i2c/ths7303.c                        |  3 +-
 drivers/media/i2c/ths8200.c                        |  9 +++--
 drivers/media/i2c/tvp7002.c                        |  4 +-
 drivers/media/i2c/vpx3220.c                        |  3 +-
 drivers/media/pci/bt8xx/bttv-cards.c               | 17 ++++----
 drivers/media/pci/bt8xx/bttv-driver.c              |  7 ++--
 drivers/media/pci/cobalt/cobalt-driver.c           |  3 +-
 drivers/media/pci/cx18/cx18-av-core.c              |  5 ++-
 drivers/media/pci/cx23885/altera-ci.c              |  3 +-
 drivers/media/pci/cx23885/cimax2.c                 |  3 +-
 drivers/media/pci/cx23885/cx23888-ir.c             | 37 ++++++++---------
 drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c      |  3 +-
 drivers/media/pci/ivtv/ivtv-ioctl.c                |  3 +-
 drivers/media/pci/saa7134/saa7134-cards.c          |  4 +-
 drivers/media/pci/saa7134/saa7134-dvb.c            |  3 +-
 drivers/media/pci/saa7134/saa7134-input.c          |  7 ++--
 drivers/media/pci/saa7134/saa7134-video.c          |  3 +-
 drivers/media/platform/amphion/venc.c              |  3 +-
 drivers/media/platform/amphion/vpu_dbg.c           |  3 +-
 drivers/media/platform/aspeed/aspeed-video.c       |  5 ++-
 drivers/media/platform/chips-media/coda/coda-bit.c |  3 +-
 drivers/media/platform/chips-media/coda/imx-vdoa.c |  3 +-
 drivers/media/platform/st/sti/hva/hva-debugfs.c    |  7 ++--
 drivers/media/platform/ti/cal/cal-camerarx.c       |  3 +-
 drivers/media/platform/ti/omap3isp/ispstat.c       |  3 +-
 drivers/media/platform/xilinx/xilinx-csi2rxss.c    | 19 ++++-----
 drivers/media/rc/ene_ir.c                          |  3 +-
 drivers/media/rc/mceusb.c                          |  3 +-
 drivers/media/rc/serial_ir.c                       |  5 ++-
 drivers/media/tuners/tda18250.c                    |  3 +-
 drivers/media/tuners/tda9887.c                     | 11 +++---
 drivers/media/usb/cx231xx/cx231xx-i2c.c            |  5 ++-
 drivers/media/usb/cx231xx/cx231xx-video.c          |  5 ++-
 drivers/media/usb/dvb-usb-v2/az6007.c              |  5 ++-
 drivers/media/usb/dvb-usb-v2/dvb_usb_core.c        |  5 ++-
 drivers/media/usb/dvb-usb/af9005-fe.c              |  5 ++-
 drivers/media/usb/dvb-usb/dvb-usb-dvb.c            |  7 ++--
 drivers/media/usb/dvb-usb/opera1.c                 |  9 +++--
 drivers/media/usb/em28xx/em28xx-i2c.c              |  5 ++-
 drivers/media/usb/em28xx/em28xx-video.c            |  5 ++-
 drivers/media/usb/pvrusb2/pvrusb2-ctrl.c           |  3 +-
 drivers/media/usb/pvrusb2/pvrusb2-debugifc.c       |  3 +-
 drivers/media/usb/pvrusb2/pvrusb2-encoder.c        |  6 +--
 drivers/media/usb/pvrusb2/pvrusb2-hdw.c            |  7 ++--
 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c       |  4 +-
 70 files changed, 291 insertions(+), 243 deletions(-)
---
base-commit: e2911fda9771c7af657331e8073b112bdb56f0f7
change-id: 20250114-str-enable-disable-media-da9eb4e0dfef

Best regards,