Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * wm8400 client interface
0004  *
0005  * Copyright 2008 Wolfson Microelectronics plc
0006  */
0007 
0008 #ifndef __LINUX_MFD_WM8400_H
0009 #define __LINUX_MFD_WM8400_H
0010 
0011 #include <linux/regulator/machine.h>
0012 
0013 #define WM8400_LDO1  0
0014 #define WM8400_LDO2  1
0015 #define WM8400_LDO3  2
0016 #define WM8400_LDO4  3
0017 #define WM8400_DCDC1 4
0018 #define WM8400_DCDC2 5
0019 
0020 struct wm8400_platform_data {
0021     int (*platform_init)(struct device *dev);
0022 };
0023 
0024 int wm8400_register_regulator(struct device *dev, int reg,
0025                   struct regulator_init_data *initdata);
0026 
0027 #endif