linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2 0/3] Make the irqchip immutable
@ 2022-12-20 13:23 Cixi Geng
  2022-12-20 13:23 ` [PATCH V2 1/3] gpio: eic-sprd: " Cixi Geng
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Cixi Geng @ 2022-12-20 13:23 UTC (permalink / raw)
  To: linus.walleij, brgl, orsonzhai, baolin.wang, zhang.lyra
  Cc: linux-gpio, linux-kernel

From: Cixi Geng <cixi.geng1@unisoc.com>

Kernel warns about mutable irq_chips:
    "not an immutable chip, please consider fixing!"

Make the struct irq_chip const, flag it as IRQCHIP_IMMUTABLE, add the
new helper functions, and call the appropriate gpiolib functions.

changes:
split the patch by each driver. and other comment by baolin in[1]

Cixi Geng (3):
  gpio: eic-sprd: Make the irqchip immutable
  gpio: gpio-pmic-eic-sprd: Make the irqchip immutable
  gpio: gpio-sprd: Make the irqchip immutable

 drivers/gpio/gpio-eic-sprd.c      | 23 ++++++++++++++---------
 drivers/gpio/gpio-pmic-eic-sprd.c | 29 ++++++++++++++++++-----------
 drivers/gpio/gpio-sprd.c          |  8 ++++++--
 3 files changed, 38 insertions(+), 22 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-12-20 13:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-20 13:23 [PATCH V2 0/3] Make the irqchip immutable Cixi Geng
2022-12-20 13:23 ` [PATCH V2 1/3] gpio: eic-sprd: " Cixi Geng
2022-12-20 13:23 ` [PATCH V2 2/3] gpio: gpio-pmic-eic-sprd: " Cixi Geng
2022-12-20 13:23 ` [PATCH V2 3/3] gpio: gpio-sprd: " Cixi Geng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).