Linux Input/HID development
 help / color / mirror / Atom feed
From: Frank Li <Frank.li@nxp.com>
To: "Uwe Kleine-König" <u.kleine-koenig@baylibre.com>
Cc: Lee Jones <lee@kernel.org>, Samuel Kayode <samkay014@gmail.com>,
	Dmitry Torokhov <dmitry.torokhov@gmail.com>,
	Sean Nyekjaer <sean@geanix.com>,
	imx@lists.linux.dev, linux-input@vger.kernel.org
Subject: Re: [PATCH] Input: pf1550 - cope for CONFIG_PM=n
Date: Mon, 12 Jan 2026 11:25:24 -0500	[thread overview]
Message-ID: <aWUgdOixLYh36OBB@lizhi-Precision-Tower-5810> (raw)
In-Reply-To: <20260112161401.3751275-2-u.kleine-koenig@baylibre.com>

On Mon, Jan 12, 2026 at 05:13:59PM +0100, Uwe Kleine-König wrote:
> This fixes the following build failure with CONFIG_PM disabled:
>
> 	drivers/input/misc/pf1550-onkey.c:154:12: error: ‘pf1550_onkey_resume’ defined but not used [-Werror=unused-function]
> 	  154 | static int pf1550_onkey_resume(struct device *dev)
> 	      |            ^~~~~~~~~~~~~~~~~~~
> 	drivers/input/misc/pf1550-onkey.c:133:12: error: ‘pf1550_onkey_suspend’ defined but not used [-Werror=unused-function]
> 	  133 | static int pf1550_onkey_suspend(struct device *dev)
> 	      |            ^~~~~~~~~~~~~~~~~~~~
> 	cc1: all warnings being treated as errors
>
> Fixes: 9acb215cbebd ("Input: pf1550 - add onkey support")
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
> ---

Reviewed-by: Frank Li <Frank.Li@nxp.com>

>  drivers/input/misc/pf1550-onkey.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/input/misc/pf1550-onkey.c b/drivers/input/misc/pf1550-onkey.c
> index 9be6377151cb..a636ceedfc04 100644
> --- a/drivers/input/misc/pf1550-onkey.c
> +++ b/drivers/input/misc/pf1550-onkey.c
> @@ -173,8 +173,8 @@ static int pf1550_onkey_resume(struct device *dev)
>  	return 0;
>  }
>
> -static SIMPLE_DEV_PM_OPS(pf1550_onkey_pm_ops, pf1550_onkey_suspend,
> -			 pf1550_onkey_resume);
> +static DEFINE_SIMPLE_DEV_PM_OPS(pf1550_onkey_pm_ops, pf1550_onkey_suspend,
> +				pf1550_onkey_resume);
>
>  static const struct platform_device_id pf1550_onkey_id[] = {
>  	{ "pf1550-onkey", },
>
> base-commit: 8f0b4cce4481fb22653697cced8d0d04027cb1e8
> --
> 2.47.3
>

      reply	other threads:[~2026-01-12 16:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-12 16:13 [PATCH] Input: pf1550 - cope for CONFIG_PM=n Uwe Kleine-König
2026-01-12 16:25 ` Frank Li [this message]

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=aWUgdOixLYh36OBB@lizhi-Precision-Tower-5810 \
    --to=frank.li@nxp.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=imx@lists.linux.dev \
    --cc=lee@kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=samkay014@gmail.com \
    --cc=sean@geanix.com \
    --cc=u.kleine-koenig@baylibre.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