Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0+ */
0002 /*
0003  * Copyright 2020 Monolithic Power Systems, Inc
0004  */
0005 
0006 #ifndef __MP2629_H__
0007 #define __MP2629_H__
0008 
0009 #include <linux/device.h>
0010 #include <linux/regmap.h>
0011 
0012 struct mp2629_data {
0013     struct device *dev;
0014     struct regmap *regmap;
0015 };
0016 
0017 enum mp2629_adc_chan {
0018     MP2629_BATT_VOLT,
0019     MP2629_SYSTEM_VOLT,
0020     MP2629_INPUT_VOLT,
0021     MP2629_BATT_CURRENT,
0022     MP2629_INPUT_CURRENT,
0023     MP2629_ADC_CHAN_END
0024 };
0025 
0026 #endif