Re: [PATCH v3] drivers: power: twl4030_charger: fix link problems when building as module

2015-09-26 Thread Sebastian Reichel
Hi Marek, On Fri, Sep 25, 2015 at 10:20:45PM +0200, Marek Belisko wrote: > If either twl4030_charger or twl4030_madc is configured as MODULE, > we get build (link) errors. > > To solve, the direct call of twl4030_get_madc_conversion() is replaced > by a call to iio_read_channel_processed(). > >

Re: [PATCH v3] drivers: power: twl4030_charger: fix link problems when building as module

2015-09-26 Thread Sebastian Reichel
Hi Marek, On Fri, Sep 25, 2015 at 10:20:45PM +0200, Marek Belisko wrote: > If either twl4030_charger or twl4030_madc is configured as MODULE, > we get build (link) errors. > > To solve, the direct call of twl4030_get_madc_conversion() is replaced > by a call to iio_read_channel_processed(). > >

[PATCH v3] drivers: power: twl4030_charger: fix link problems when building as module

2015-09-25 Thread Marek Belisko
If either twl4030_charger or twl4030_madc is configured as MODULE, we get build (link) errors. To solve, the direct call of twl4030_get_madc_conversion() is replaced by a call to iio_read_channel_processed(). Signed-off-by: H. Nikolaus Schaller Signed-off-by: Marek Belisko --- changes from v2:

[PATCH v3] drivers: power: twl4030_charger: fix link problems when building as module

2015-09-25 Thread Marek Belisko
If either twl4030_charger or twl4030_madc is configured as MODULE, we get build (link) errors. To solve, the direct call of twl4030_get_madc_conversion() is replaced by a call to iio_read_channel_processed(). Signed-off-by: H. Nikolaus Schaller Signed-off-by: Marek Belisko