mfd: tps65910: Clean up after switching to regmap
Remove wrappers around regmap calls to remove now-useless indirection. Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl> Signed-off-by: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
parent
da7d203f46
commit
28faad777c
2 changed files with 8 additions and 43 deletions
|
|
@ -913,39 +913,4 @@ static inline int tps65910_chip_id(struct tps65910 *tps65910)
|
|||
return tps65910->id;
|
||||
}
|
||||
|
||||
static inline int tps65910_reg_read(struct tps65910 *tps65910, u8 reg,
|
||||
unsigned int *val)
|
||||
{
|
||||
return regmap_read(tps65910->regmap, reg, val);
|
||||
}
|
||||
|
||||
static inline int tps65910_reg_write(struct tps65910 *tps65910, u8 reg,
|
||||
unsigned int val)
|
||||
{
|
||||
return regmap_write(tps65910->regmap, reg, val);
|
||||
}
|
||||
|
||||
static inline int tps65910_reg_set_bits(struct tps65910 *tps65910, u8 reg,
|
||||
u8 mask)
|
||||
{
|
||||
return regmap_update_bits(tps65910->regmap, reg, mask, mask);
|
||||
}
|
||||
|
||||
static inline int tps65910_reg_clear_bits(struct tps65910 *tps65910, u8 reg,
|
||||
u8 mask)
|
||||
{
|
||||
return regmap_update_bits(tps65910->regmap, reg, mask, 0);
|
||||
}
|
||||
|
||||
static inline int tps65910_reg_update_bits(struct tps65910 *tps65910, u8 reg,
|
||||
u8 mask, u8 val)
|
||||
{
|
||||
return regmap_update_bits(tps65910->regmap, reg, mask, val);
|
||||
}
|
||||
|
||||
static inline int tps65910_irq_get_virq(struct tps65910 *tps65910, int irq)
|
||||
{
|
||||
return regmap_irq_get_virq(tps65910->irq_data, irq);
|
||||
}
|
||||
|
||||
#endif /* __LINUX_MFD_TPS65910_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue