From: Lee Jones <lee@kernel.org>
To: vicentiu.galanopulo@remote-tech.co.uk,
linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org,
lee@kernel.org, pavel@kernel.org, xiaopeitux@foxmail.com
Cc: Pei Xiao <xiaopei01@kylinos.cn>, kernel test robot <lkp@intel.com>
Subject: Re: (subset) [PATCH] leds: Refactor st1202_led_set to use !! operator for boolean conversion
Date: Thu, 20 Feb 2025 15:48:52 +0000 [thread overview]
Message-ID: <174006653265.831609.185737357402182054.b4-ty@kernel.org> (raw)
In-Reply-To: <tencent_3DF7518D407679C99C4CCCB1B8E64638700A@qq.com>
On Wed, 19 Feb 2025 10:42:02 +0800, xiaopeitux@foxmail.com wrote:
> cocci warnings:
> drivers/leds/leds-st1202.c:194:66-71: WARNING: conversion to bool not
> needed here.
>
> st1202_led_set function now uses the !! operator to convert the
> enum led_brightness value to a boolean active state, which is then
> passed to the st1202_channel_set function. This change maintains the
> existing functionality.
>
> [...]
Applied, thanks!
[1/1] leds: Refactor st1202_led_set to use !! operator for boolean conversion
commit: 2f372a5dce6885f1d2647f7add01756bee0fef49
--
Lee Jones [李琼斯]
prev parent reply other threads:[~2025-02-20 15:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-19 2:42 [PATCH] leds: Refactor st1202_led_set to use !! operator for boolean conversion xiaopeitux
2025-02-20 15:48 ` Lee Jones [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=174006653265.831609.185737357402182054.b4-ty@kernel.org \
--to=lee@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=lkp@intel.com \
--cc=pavel@kernel.org \
--cc=vicentiu.galanopulo@remote-tech.co.uk \
--cc=xiaopei01@kylinos.cn \
--cc=xiaopeitux@foxmail.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