Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

-7
-7
drivers/media/pci/cx25821/cx25821-core.c
··· 337 337 return incr[risc >> 28] ? incr[risc >> 28] : 1; 338 338 } 339 339 340 - static inline int i2c_slave_did_ack(struct i2c_adapter *i2c_adap) 341 - { 342 - struct cx25821_i2c *bus = i2c_adap->algo_data; 343 - struct cx25821_dev *dev = bus->dev; 344 - return cx_read(bus->reg_stat) & 0x01; 345 - } 346 - 347 340 static void cx25821_registers_init(struct cx25821_dev *dev) 348 341 { 349 342 u32 tmp;