mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
media: cx25821: drop duplicated i2c_slave_did_ack()
This function is defined twice, one at cx25821-i2c and the other inside cx25821-core. It turns that only the first is actually used inside the code. This causes a clang warning. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
0d2517b376
commit
140dfc36fb
1 changed files with 0 additions and 7 deletions
|
@ -337,13 +337,6 @@ static int cx25821_risc_decode(u32 risc)
|
|||
return incr[risc >> 28] ? incr[risc >> 28] : 1;
|
||||
}
|
||||
|
||||
static inline int i2c_slave_did_ack(struct i2c_adapter *i2c_adap)
|
||||
{
|
||||
struct cx25821_i2c *bus = i2c_adap->algo_data;
|
||||
struct cx25821_dev *dev = bus->dev;
|
||||
return cx_read(bus->reg_stat) & 0x01;
|
||||
}
|
||||
|
||||
static void cx25821_registers_init(struct cx25821_dev *dev)
|
||||
{
|
||||
u32 tmp;
|
||||
|
|
Loading…
Reference in a new issue