The only user of wm8400_block_read/wm8400_set_bits functions is the wm8400 regulator driver. At the context of all the callers, we can use regmap_bulk_read/regmap_update_bits directly. Thus remove wm8400_block_read/wm8400_set_bits functions.
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -923,12 +923,4 @@ struct wm8400 { · 922 unmodified lines | ||
| 923 | 923 | #define WM8400_LINE_CMP_VTHD_SHIFT 0 /* LINE_CMP_VTHD - [3:0] */ |
| 924 | 924 | #define WM8400_LINE_CMP_VTHD_WIDTH 4 /* LINE_CMP_VTHD - [3:0] */ |
| 925 | 925 | |
| 926 | −int wm8400_block_read(struct wm8400 *wm8400, u8 reg, int count, u16 *data); | |
| 927 | − | |
| 928 | −static inline int wm8400_set_bits(struct wm8400 *wm8400, u8 reg, | |
| 929 | − u16 mask, u16 val) | |
| 930 | −{ | |
| 931 | − return regmap_update_bits(wm8400->regmap, reg, mask, val); | |
| 932 | −} | |
| 933 | − | |
| 934 | 926 | #endif |