Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1312972
| From | Peter Korsgaard <peter@korsgaard.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 1/2] regulator: act8945a: add regulator driver for ACT8945A |
| Date | 2016-01-20 08:50 +0100 |
| Message-ID | <qSVGG-3ku-9@gated-at.bofh.it> (permalink) |
| References | (3 earlier) <qQETE-83s-13@gated-at.bofh.it> <qQKw1-3Iv-3@gated-at.bofh.it> <qQL8K-4hn-5@gated-at.bofh.it> <qQOzE-6od-11@gated-at.bofh.it> <qSVx1-3h9-31@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
>>>>> "Yang," == Yang, Wenyou <Wenyou.Yang@atmel.com> writes: Hi, >> > The MFD sub device is registered as a platform device, the existing > act8865 >> driver is registered as an i2c_driver. How do they match? :) >> >> > Could you point out which exiting driver for me to reference. Thank you! >> >> What I'm saying is that it isn't nice that we end up with both act8865-regulator.c >> and act8954-regulator.c doing 95% the same. This can either be fixed by: >> >> - Adding act8865 support to your mfd driver (but only registering the >> regulator subdev for act8865) and changing the existing >> act8865-regulator driver to work as a mfd subdev (platform device) >> >> - Extending the act8865-regulator driver to register as a platform >> driver in ADDITION to a i2c driver so it can be used with mfd. The >> driver already uses regmap so it should only be a matter of adding the >> pdev probe/remove functions. > After think twice, I think this will complicates the act8865-regulator driver. I don't think it will add a lot of complication (E.G. basically just the platform probe/remove functions), but Ok - I'll wait and see your simplified driver. -- Venlig hilsen, Peter Korsgaard
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
RE: [PATCH v2 1/2] regulator: act8945a: add regulator driver for ACT8945A "Yang, Wenyou" <Wenyou.Yang@atmel.com> - 2016-01-20 08:40 +0100 Re: [PATCH v2 1/2] regulator: act8945a: add regulator driver for ACT8945A Peter Korsgaard <peter@korsgaard.com> - 2016-01-20 08:50 +0100
csiph-web