From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
Mika Westerberg <mika.westerberg@linux.intel.com>,
linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Andy Shevchenko <andy@kernel.org>,
Linus Walleij <linus.walleij@linaro.org>
Subject: [PATCH v2 0/3] pinctrl: intel: Replace ifdeffery by pm_sleep_ptr() macro Andy Shevchenko
Date: Fri, 6 Sep 2024 14:36:05 +0300 [thread overview]
Message-ID: <20240906113710.467716-1-andriy.shevchenko@linux.intel.com> (raw)
There are two benefits of this series:
1) no more ugly ifdeffery in the code;
2) the PM callbacks are all being synchronised via using the same macro,
i.e. pm_sleep_ptr() everywhere.
v2:
- made the code readable again (Mika)
Andy Shevchenko (3):
pinctrl: intel: Replace ifdeffery by pm_sleep_ptr() macro
pinctrl: baytrail: Replace ifdeffery by pm_sleep_ptr() macro
pinctrl: cherryview: Replace ifdeffery by pm_sleep_ptr() macro
drivers/pinctrl/intel/pinctrl-baytrail.c | 21 ++++++++++++++-------
drivers/pinctrl/intel/pinctrl-cherryview.c | 20 +++++++++++++-------
drivers/pinctrl/intel/pinctrl-intel.c | 5 +----
drivers/pinctrl/intel/pinctrl-intel.h | 14 ++++++++++++++
4 files changed, 42 insertions(+), 18 deletions(-)
--
2.43.0.rc1.1336.g36b5255a03ac
next reply other threads:[~2024-09-06 11:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-06 11:36 Andy Shevchenko [this message]
2024-09-06 11:36 ` [PATCH v2 1/3] pinctrl: intel: Replace ifdeffery by pm_sleep_ptr() macro Andy Shevchenko
2024-09-06 12:02 ` Mika Westerberg
2024-09-06 11:36 ` [PATCH v2 2/3] pinctrl: baytrail: " Andy Shevchenko
2024-09-06 11:36 ` [PATCH v2 3/3] pinctrl: cherryview: " Andy Shevchenko
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=20240906113710.467716-1-andriy.shevchenko@linux.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=andy@kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mika.westerberg@linux.intel.com \
/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;
as well as URLs for NNTP newsgroup(s).