Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1544327
| From | Chanwoo Choi <cw00.choi@samsung.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/8] extcon: axp288: Remove dependency on non-existing platform_data |
| Date | 2016-12-19 07:20 +0100 |
| Message-ID | <sPZsJ-46s-1@gated-at.bofh.it> (permalink) |
| References | <sPZsJ-46s-3@gated-at.bofh.it> <sPTQl-tj-5@gated-at.bofh.it> |
| Organization | Samsung Electronics |
Hi Hans, On 2016년 12월 19일 09:13, Hans de Goede wrote: > When the extcon_axp288 driver was originally merged, it was merged with > a dependency on some other driver providing platform data for it. > > However such another driver was never merged, so the extcon_axp288 as > merged upstream has never worked, its probe method simply always returns > -ENODEV. > > This commit drops the dependency on the pdata always being there, instead > it treats not having pdata as the pdata having a NULL gpio_mux_control, > something which the code was already prepared to handle. > > Note that the code for controlling the mux_control gpio is left in place, > as this may be necessary to allow the axp288 pmic to properly detect the > charger type (instead of assuming 500mA max charge current) on some > tablets. This will make it easier for future patches to add support for > this gpio by getting the gpio info from somewhere. > > Signed-off-by: Hans de Goede <hdegoede@redhat.com> > --- > drivers/extcon/extcon-axp288.c | 25 ++++++++++--------------- > 1 file changed, 10 insertions(+), 15 deletions(-) Looks good to me. Acked-by: Chanwoo Choi <cw00.choi@samsung.com> -- Regards, Chanwoo Choi
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/8] extcon: axp288: Remove dependency on non-existing platform_data Hans de Goede <hdegoede@redhat.com> - 2016-12-19 01:20 +0100
[PATCH 4/8] extcon: axp288: Fix possibly reporting 2 cables in state true Hans de Goede <hdegoede@redhat.com> - 2016-12-19 01:20 +0100
Re: [PATCH 4/8] extcon: axp288: Fix possibly reporting 2 cables in state true Chanwoo Choi <cw00.choi@samsung.com> - 2016-12-19 07:30 +0100
[PATCH 2/8] extcon: axp288: Remove usb_phy notification code Hans de Goede <hdegoede@redhat.com> - 2016-12-19 01:20 +0100
Re: [PATCH 2/8] extcon: axp288: Remove usb_phy notification code Chanwoo Choi <cw00.choi@samsung.com> - 2016-12-19 08:00 +0100
Re: [PATCH 1/8] extcon: axp288: Remove dependency on non-existing platform_data Chanwoo Choi <cw00.choi@samsung.com> - 2016-12-19 07:20 +0100
Re: [PATCH 1/8] extcon: axp288: Remove dependency on non-existing platform_data Chanwoo Choi <cw00.choi@samsung.com> - 2016-12-19 08:00 +0100
Re: [PATCH 1/8] extcon: axp288: Remove dependency on non-existing platform_data Hans de Goede <hdegoede@redhat.com> - 2016-12-19 09:20 +0100
Re: [PATCH 1/8] extcon: axp288: Remove dependency on non-existing platform_data Chanwoo Choi <cw00.choi@samsung.com> - 2016-12-19 09:30 +0100
csiph-web