Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1185741 > unrolled thread
| Started by | Linus Walleij <linus.walleij@linaro.org> |
|---|---|
| First post | 2015-07-16 13:30 +0200 |
| Last post | 2015-07-16 14:00 +0200 |
| Articles | 3 — 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 2/2] gpiolib: assign chip owner to dev->driver->owner if not set Linus Walleij <linus.walleij@linaro.org> - 2015-07-16 13:30 +0200
Re: [PATCH 2/2] gpiolib: assign chip owner to dev->driver->owner if not set Linus Walleij <linus.walleij@linaro.org> - 2015-07-16 13:30 +0200
Re: [PATCH 2/2] gpiolib: assign chip owner to dev->driver->owner if not set Grygorii Strashko <grygorii.strashko@ti.com> - 2015-07-16 14:00 +0200
| From | Linus Walleij <linus.walleij@linaro.org> |
|---|---|
| Date | 2015-07-16 13:30 +0200 |
| Subject | Re: [PATCH 2/2] gpiolib: assign chip owner to dev->driver->owner if not set |
| Message-ID | <pMPwt-5cU-1@gated-at.bofh.it> |
On Thu, Jun 25, 2015 at 7:30 PM, Grygorii Strashko <grygorii.strashko@ti.com> wrote: > Assign GPIO chip owner field to chip->dev->driver->owner if it was not > configured by GPIO driver. > > Cc: Johan Hovold <johan@kernel.org> > Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com> Patch applied with Alex' review tag. > There is also one positive additional side effect: > lines like below can be removed from a lot of GPIO > drivers > rdc321x_gpio_dev->chip.owner = THIS_MODULE; Yes let's do this :) Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Linus Walleij <linus.walleij@linaro.org> |
|---|---|
| Date | 2015-07-16 13:30 +0200 |
| Message-ID | <pMPww-5cU-47@gated-at.bofh.it> |
| In reply to | #1185741 |
On Thu, Jul 16, 2015 at 1:22 PM, Linus Walleij <linus.walleij@linaro.org> wrote: > On Thu, Jun 25, 2015 at 7:30 PM, Grygorii Strashko > <grygorii.strashko@ti.com> wrote: > >> Assign GPIO chip owner field to chip->dev->driver->owner if it was not >> configured by GPIO driver. >> >> Cc: Johan Hovold <johan@kernel.org> >> Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com> > > Patch applied with Alex' review tag. > >> There is also one positive additional side effect: >> lines like below can be removed from a lot of GPIO >> drivers >> rdc321x_gpio_dev->chip.owner = THIS_MODULE; > > Yes let's do this :) Or actually, I have had some second thought to why gpio_chip is duplicating struct members from struct device at all. Why should it even have "owner" and "of_node"? Should we not just rewrite this code to follow the struct device *dev pointer in gpio_chip and use "owner" and "of_node" from there? Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Grygorii Strashko <grygorii.strashko@ti.com> |
|---|---|
| Date | 2015-07-16 14:00 +0200 |
| Subject | Re: [PATCH 2/2] gpiolib: assign chip owner to dev->driver->owner if not set |
| Message-ID | <pMPZx-5LR-11@gated-at.bofh.it> |
| In reply to | #1185755 |
On 07/16/2015 02:25 PM, Linus Walleij wrote: > On Thu, Jul 16, 2015 at 1:22 PM, Linus Walleij <linus.walleij@linaro.org> wrote: >> On Thu, Jun 25, 2015 at 7:30 PM, Grygorii Strashko >> <grygorii.strashko@ti.com> wrote: >> >>> Assign GPIO chip owner field to chip->dev->driver->owner if it was not >>> configured by GPIO driver. >>> >>> Cc: Johan Hovold <johan@kernel.org> >>> Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com> >> >> Patch applied with Alex' review tag. >> >>> There is also one positive additional side effect: >>> lines like below can be removed from a lot of GPIO >>> drivers >>> rdc321x_gpio_dev->chip.owner = THIS_MODULE; >> >> Yes let's do this :) > > Or actually, I have had some second thought to why gpio_chip > is duplicating struct members from struct device at all. > > Why should it even have "owner" and "of_node"? > > Should we not just rewrite this code to follow the struct device *dev > pointer in gpio_chip and use "owner" and "of_node" from there? > Seems not all drivers implemented using Dev/Driver approach, so they don't have dev at all ;) gpio-samsung.c for example (non-DT driver). -- regards, -grygorii -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web