Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1381330 > unrolled thread
| Started by | Wadim Egorov <w.egorov@phytec.de> |
|---|---|
| First post | 2016-04-18 09:30 +0200 |
| Last post | 2016-04-18 19:10 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH 3/6] regulator: rk808: Make rk808 generic, rename rk808-regulator.c Wadim Egorov <w.egorov@phytec.de> - 2016-04-18 09:30 +0200
Re: [PATCH 3/6] regulator: rk808: Make rk808 generic, rename rk808-regulator.c Mark Brown <broonie@kernel.org> - 2016-04-18 19:10 +0200
| From | Wadim Egorov <w.egorov@phytec.de> |
|---|---|
| Date | 2016-04-18 09:30 +0200 |
| Subject | Re: [PATCH 3/6] regulator: rk808: Make rk808 generic, rename rk808-regulator.c |
| Message-ID | <rpbN7-1wD-11@gated-at.bofh.it> |
On 15.04.2016 18:24, Alexandre Belloni wrote: > On 15/04/2016 at 11:26:02 +0100, Mark Brown wrote : >> On Fri, Apr 15, 2016 at 11:16:27AM +0200, Wadim Egorov wrote: >> >>> This patch just renames the rk808 driver so we can reuse this driver >>> to add more regulator devices from the RK8XX PMIC family later. >> We normally manage to cope fine without renaming things - it's quite >> common to have drivers that were initially named after one part >> supporting multiple parts, avoiding the rename makes things like >> backports easier and avoids needing git log --follow and so on. > I agree with that and I will also add that probably at some point in > time a new part may appear with a name matching rk8xx but may not be > compatible with the rk8xx driver and that is when the real mess starts. > > Finally, renaming the config options and the modules is not nice for the > user. > OK, renaming the driver and it's config options is not the best idea. But how about renaming the variables and function names within the drivers? It would be more clearer which driver parts are generic and are used by multiple PMIC devices. It seems this topic has been already discussed here [1]. So the right solution is just to rename the rk808 struct in rk808.h, don't touch the driver names and config options and naming the additional RK818 PMIC in the Kconfig? [1] https://lkml.org/lkml/2015/12/31/13
[toc] | [next] | [standalone]
| From | Mark Brown <broonie@kernel.org> |
|---|---|
| Date | 2016-04-18 19:10 +0200 |
| Message-ID | <rpkQr-Ms-37@gated-at.bofh.it> |
| In reply to | #1381330 |
[Multipart message — attachments visible in raw view] — view raw
On Mon, Apr 18, 2016 at 09:25:57AM +0200, Wadim Egorov wrote: > It seems this topic has been already discussed here [1]. > So the right solution is just to rename the rk808 struct in rk808.h, > don't touch the driver names and config options and naming the > additional RK818 PMIC in the Kconfig? Something like that, yes. If it's really useful for clarification some renaming of code might be useful.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web