From: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
To: matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com,
fchiby@baylibre.com, fparent@baylibre.com,
s.hauer@pengutronix.de
Cc: linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org,
kernel-janitors@vger.kernel.org,
Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Subject: [PATCH v2 0/3] soc: mediatek: pwrap: Constify some data and other improvements
Date: Sun, 7 Jul 2024 07:47:19 +0200 [thread overview]
Message-ID: <cover.1720331018.git.christophe.jaillet@wanadoo.fr> (raw)
This series is motivated by patch 1. The 2 other patches are some
additionnal goodies spotted while looking at the code.
Patch 1 constifies struct pmic_wrapper_type to move some data to a
read-only section, in order to increase safety.
Patch 2 does the same for some int arrays. This helps move about 7 ko of
data to a read-only section. Not that bad!
Patch 3 simplifies code related to clk management. It also fixes an
issue if the driver is unloaded.
Christophe JAILLET (3):
soc: mediatek: pwrap: Constify struct pmic_wrapper_type
soc: mediatek: pwrap: Constify some struct int[]
soc: mediatek: pwrap: Use devm_clk_bulk_get_all_enable()
drivers/soc/mediatek/mtk-pmic-wrap.c | 118 +++++++--------------------
1 file changed, 30 insertions(+), 88 deletions(-)
--
2.45.2
next reply other threads:[~2024-07-07 5:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-07 5:47 Christophe JAILLET [this message]
2024-07-07 5:47 ` [PATCH v2 1/3] soc: mediatek: pwrap: Constify struct pmic_wrapper_type Christophe JAILLET
2024-07-07 5:47 ` [PATCH v2 2/3] soc: mediatek: pwrap: Constify some struct int[] Christophe JAILLET
2024-07-07 5:47 ` [PATCH v2 3/3] soc: mediatek: pwrap: Use devm_clk_bulk_get_all_enable() Christophe JAILLET
2024-07-30 8:57 ` [PATCH v2 0/3] soc: mediatek: pwrap: Constify some data and other improvements AngeloGioacchino Del Regno
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1720331018.git.christophe.jaillet@wanadoo.fr \
--to=christophe.jaillet@wanadoo.fr \
--cc=angelogioacchino.delregno@collabora.com \
--cc=fchiby@baylibre.com \
--cc=fparent@baylibre.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=s.hauer@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®