diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2015-01-08 14:19:00 -0500 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2015-01-13 04:37:43 -0500 |
commit | 1c57499361c403f18e5423969b9aa2446bdbe622 (patch) | |
tree | e0b2b7023519f264e4152b9de26979ecbbfa83d7 /drivers/i2c | |
parent | 523c5b89640e147abc7c70466f55327df8559d0a (diff) |
i2c: pmcmsp: remove dead code
CPPCHECK rightfully says:
drivers/i2c/busses/i2c-pmcmsp.c:151: style: The function 'pmcmsptwi_reg_to_clock' is never used.
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-pmcmsp.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/i2c/busses/i2c-pmcmsp.c b/drivers/i2c/busses/i2c-pmcmsp.c index 44f03eed00dd..d37d9db6681e 100644 --- a/drivers/i2c/busses/i2c-pmcmsp.c +++ b/drivers/i2c/busses/i2c-pmcmsp.c | |||
@@ -148,13 +148,6 @@ static inline u32 pmcmsptwi_clock_to_reg( | |||
148 | return ((clock->filter & 0xf) << 12) | (clock->clock & 0x03ff); | 148 | return ((clock->filter & 0xf) << 12) | (clock->clock & 0x03ff); |
149 | } | 149 | } |
150 | 150 | ||
151 | static inline void pmcmsptwi_reg_to_clock( | ||
152 | u32 reg, struct pmcmsptwi_clock *clock) | ||
153 | { | ||
154 | clock->filter = (reg >> 12) & 0xf; | ||
155 | clock->clock = reg & 0x03ff; | ||
156 | } | ||
157 | |||
158 | static inline u32 pmcmsptwi_cfg_to_reg(const struct pmcmsptwi_cfg *cfg) | 151 | static inline u32 pmcmsptwi_cfg_to_reg(const struct pmcmsptwi_cfg *cfg) |
159 | { | 152 | { |
160 | return ((cfg->arbf & 0xf) << 12) | | 153 | return ((cfg->arbf & 0xf) << 12) | |