Linux Input/HID development
 help / color / mirror / Atom feed
From: Dan Carpenter <dan.carpenter@linaro.org>
To: Aditya Garg <gargaditya08@live.com>
Cc: Jiri Kosina <jikos@kernel.org>,
	"jkosina@suse.com" <jkosina@suse.com>,
	"linux-input@vger.kernel.org" <linux-input@vger.kernel.org>
Subject: Re: [bug report] HID: hid-appletb-kbd: add support for automatic brightness control while using the touchbar
Date: Mon, 17 Feb 2025 10:00:37 +0300	[thread overview]
Message-ID: <b8a25a68-fd1f-412f-b357-c9f4a6de7c10@stanley.mountain> (raw)
In-Reply-To: <539DA7C2-18D0-40C3-AB5A-25037AED611D@live.com>

On Mon, Feb 17, 2025 at 05:27:42AM +0000, Aditya Garg wrote:
> >>   397 
> >>   398         ret = hid_hw_open(hdev);
> >>   399         if (ret) {
> >>   400                 dev_err_probe(dev, ret, "HID hw open failed\n");
> >>   401                 goto stop_hw;
> >>   402         }
> >>   403 
> >>   404         kbd->backlight_dev = backlight_device_get_by_name("appletb_backlight");
> >>   405                 if (!kbd->backlight_dev)
> >> --> 406                         dev_err_probe(dev, ret, "Failed to get backlight device\n");
> >>                                                  ^^^
> >> s/ret/-EINVAL/?
> > 
> > Should be -ENODEV
> > 
> >> 
> >> Why is this indented an extra tab?
> > 
> > Thanks for pointing this out.
> > 
> > Patch series with some issues I myself found out, along with the one you flagged are sent here:
> 
> 
> Btw, I wonder what’s wrong with checkpatch. I didn't get any errors/warnings regarding these.


These are Smatch warnings:
https://github.com/error27/smatch/blob/master/Documentation/smatch.rst

~/smatch_dir/smatch_scripts/kchecker drivers/hid/hid-appletb-kbd.c

regards,
dan carpenter

      reply	other threads:[~2025-02-17  7:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-16 21:42 [bug report] HID: hid-appletb-kbd: add support for automatic brightness control while using the touchbar Dan Carpenter
2025-02-17  4:50 ` Aditya Garg
2025-02-17  5:26   ` Dan Carpenter
2025-02-17  5:27   ` Aditya Garg
2025-02-17  7:00     ` Dan Carpenter [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=b8a25a68-fd1f-412f-b357-c9f4a6de7c10@stanley.mountain \
    --to=dan.carpenter@linaro.org \
    --cc=gargaditya08@live.com \
    --cc=jikos@kernel.org \
    --cc=jkosina@suse.com \
    --cc=linux-input@vger.kernel.org \
    /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