Skip to content

Commit d816f21

Browse files
fancerWolfram Sang
authored andcommitted
i2c: designware: Discard i2c_dw_read_comp_param() function
There is no code left in the kernel which would be using the function. So just remove it. Signed-off-by: Serge Semin <[email protected]> Signed-off-by: Alexey Malahov <[email protected]> Acked-by: Jarkko Nikula <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent 1f1a714 commit d816f21

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

drivers/i2c/busses/i2c-designware-common.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -388,11 +388,5 @@ void i2c_dw_disable_int(struct dw_i2c_dev *dev)
388388
dw_writel(dev, 0, DW_IC_INTR_MASK);
389389
}
390390

391-
u32 i2c_dw_read_comp_param(struct dw_i2c_dev *dev)
392-
{
393-
return dw_readl(dev, DW_IC_COMP_PARAM_1);
394-
}
395-
EXPORT_SYMBOL_GPL(i2c_dw_read_comp_param);
396-
397391
MODULE_DESCRIPTION("Synopsys DesignWare I2C bus adapter core");
398392
MODULE_LICENSE("GPL");

drivers/i2c/busses/i2c-designware-core.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,6 @@ static inline void __i2c_dw_disable_nowait(struct dw_i2c_dev *dev)
314314

315315
void __i2c_dw_disable(struct dw_i2c_dev *dev);
316316

317-
extern u32 i2c_dw_read_comp_param(struct dw_i2c_dev *dev);
318317
extern int i2c_dw_probe(struct dw_i2c_dev *dev);
319318
#if IS_ENABLED(CONFIG_I2C_DESIGNWARE_SLAVE)
320319
extern int i2c_dw_probe_slave(struct dw_i2c_dev *dev);

0 commit comments

Comments
 (0)