lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250114-str-enable-disable-media-v1-0-9316270aa65f@linaro.org>
Date: Tue, 14 Jan 2025 20:46:16 +0100
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Hans Verkuil <hverkuil@...all.nl>, 
 Mauro Carvalho Chehab <mchehab@...nel.org>, 
 Tomasz Figa <tfiga@...omium.org>, 
 Marek Szyprowski <m.szyprowski@...sung.com>, 
 Maxim Levitsky <maximlevitsky@...il.com>, Sean Young <sean@...s.org>, 
 Olli Salonen <olli.salonen@....fi>, Abylay Ospan <aospan@...zon.com>, 
 Jemma Denson <jdenson@...il.com>, 
 Patrick Boettcher <patrick.boettcher@...teo.de>, 
 Jacopo Mondi <jacopo+renesas@...ndi.org>, 
 Kieran Bingham <kieran.bingham+renesas@...asonboard.com>, 
 Laurent Pinchart <laurent.pinchart+renesas@...asonboard.com>, 
 Niklas Söderlund <niklas.soderlund+renesas@...natech.se>, 
 Tim Harvey <tharvey@...eworks.com>, Andy Walls <awalls@...metrocast.net>, 
 Sakari Ailus <sakari.ailus@...ux.intel.com>, 
 Bingbu Cao <bingbu.cao@...el.com>
Cc: linux-media@...r.kernel.org, linux-kernel@...r.kernel.org, 
 Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
Subject: [PATCH 0/6] media: Use str_enable_disable-like helpers

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,
-- 
Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ