summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/au0828
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-11-24 12:37:36 +0100
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-11-29 13:23:14 +0100
commit091b15db22e40e7865ba32b1392e3a7a1ee9e852 (patch)
tree6b68dd65079efe45af385758a59e63eae3d8f51d /drivers/media/usb/au0828
parentmedia: lmedm04: don't ignore errors when setting a filter (diff)
downloadlinux-091b15db22e40e7865ba32b1392e3a7a1ee9e852.tar.xz
linux-091b15db22e40e7865ba32b1392e3a7a1ee9e852.zip
media: au0828-i2c: drop a duplicated function
This function is not used, so, just drop it. Reviewed-by: Nathan Chancellor <nathan@kernel.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/usb/au0828')
-rw-r--r--drivers/media/usb/au0828/au0828-i2c.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/media/usb/au0828/au0828-i2c.c b/drivers/media/usb/au0828/au0828-i2c.c
index 708f01ab47fa..749f90d73b5b 100644
--- a/drivers/media/usb/au0828/au0828-i2c.c
+++ b/drivers/media/usb/au0828/au0828-i2c.c
@@ -23,13 +23,6 @@ MODULE_PARM_DESC(i2c_scan, "scan i2c bus at insmod time");
#define I2C_WAIT_DELAY 25
#define I2C_WAIT_RETRY 1000
-static inline int i2c_slave_did_write_ack(struct i2c_adapter *i2c_adap)
-{
- struct au0828_dev *dev = i2c_adap->algo_data;
- return au0828_read(dev, AU0828_I2C_STATUS_201) &
- AU0828_I2C_STATUS_NO_WRITE_ACK ? 0 : 1;
-}
-
static inline int i2c_slave_did_read_ack(struct i2c_adapter *i2c_adap)
{
struct au0828_dev *dev = i2c_adap->algo_data;