.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
---|
1 | 2 | /* |
---|
2 | 3 | * wm8400 private definitions. |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright 2008 Wolfson Microelectronics plc |
---|
5 | | - * |
---|
6 | | - * This program is free software; you can redistribute it and/or modify |
---|
7 | | - * it under the terms of the GNU General Public License as published by |
---|
8 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
9 | | - * (at your option) any later version. |
---|
10 | | - * |
---|
11 | | - * This program is distributed in the hope that it will be useful, |
---|
12 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
13 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
14 | | - * GNU General Public License for more details. |
---|
15 | | - * |
---|
16 | | - * You should have received a copy of the GNU General Public License |
---|
17 | | - * along with this program; if not, write to the Free Software |
---|
18 | | - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
---|
19 | 6 | */ |
---|
20 | 7 | |
---|
21 | 8 | #ifndef __LINUX_MFD_WM8400_PRIV_H |
---|
.. | .. |
---|
922 | 909 | #define WM8400_LINE_CMP_VTHD_MASK 0x000F /* LINE_CMP_VTHD - [3:0] */ |
---|
923 | 910 | #define WM8400_LINE_CMP_VTHD_SHIFT 0 /* LINE_CMP_VTHD - [3:0] */ |
---|
924 | 911 | #define WM8400_LINE_CMP_VTHD_WIDTH 4 /* LINE_CMP_VTHD - [3:0] */ |
---|
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 | 912 | |
---|
934 | 913 | #endif |
---|