mfd: pm8058: Modify pm8058 subdevices to pm8xxx interface
Move the following subdevices to use the pm8xxx interface - mpp, irq, gpio, keypad, power-key, leds, othc, vibrator, rtc, batt-alarm, thermal, upl, nfc, pwm, xoadc, regulators, xo-buffers, charger. This allows usage of a common driver for modules which are same across multiple PM8XXX PMICs. It also provides flexibility to add/remove subdevices for multiple board configurations. Change-Id: Id9795552fc9f4a2c920c070babfaef1f4cd6ca61 Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
This commit is contained in:
@@ -344,22 +344,24 @@ int32_t adc_channel_close(void *h);
|
||||
int32_t adc_channel_request_conv(void *h, struct completion *conv_complete_evt);
|
||||
int32_t adc_channel_read_result(void *h, struct adc_chan_result *chan_result);
|
||||
#else
|
||||
int32_t adc_channel_open(uint32_t channel, void **h)
|
||||
static int32_t adc_channel_open(uint32_t channel, void **h)
|
||||
{
|
||||
pr_err("%s.not supported.\n", __func__);
|
||||
return -ENODEV;
|
||||
}
|
||||
int32_t adc_channel_close(void *h)
|
||||
static int32_t adc_channel_close(void *h)
|
||||
{
|
||||
pr_err("%s.not supported.\n", __func__);
|
||||
return -ENODEV;
|
||||
}
|
||||
int32_t adc_channel_request_conv(void *h, struct completion *conv_complete_evt)
|
||||
static int32_t
|
||||
adc_channel_request_conv(void *h, struct completion *conv_complete_evt)
|
||||
{
|
||||
pr_err("%s.not supported.\n", __func__);
|
||||
return -ENODEV;
|
||||
}
|
||||
int32_t adc_channel_read_result(void *h, struct adc_chan_result *chan_result)
|
||||
static int32_t
|
||||
adc_channel_read_result(void *h, struct adc_chan_result *chan_result)
|
||||
{
|
||||
pr_err("%s.not supported.\n", __func__);
|
||||
return -ENODEV;
|
||||
|
||||
Reference in New Issue
Block a user