All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jules Irenge <jbi.octave@gmail.com>
To: Benjamin Tissoires <benjamin.tissoires@redhat.com>,
	erazor_de@users.sourceforge.net, jikos@kernel.org,
	linux-input@vger.kernel.org
Subject: Re: [PATCH 1/3] HID: roccat: Convert snprintf() to sysfs_emit() linux-kernel@vger.kernel.org
Date: Mon, 10 Oct 2022 12:35:44 +0100	[thread overview]
Message-ID: <Y0QDkCJhR5vcLmDP@octinomon> (raw)
In-Reply-To: <CAO-hwJJebdHvb-JA18XnLAP0LVfvZ6QvOVbskpJ0ZRxPCBmetw@mail.gmail.com>

On Mon, Oct 10, 2022 at 10:55:24AM +0200, Benjamin Tissoires wrote:

> Would you mind sending a v2 with everything squashed into just one
> patch targeting all of hid-roccat-*?

Thanks for the feedback and yes, already done.

> But please be aware that I can not apply anything 6.2 related right
> now, we are in the merge window of 6.1 and I can not push anything to
> for-next that is 6.2.

Yes, I am aware.
If any missed out or other suggestions, please let me know.

Thanks,
Jules


> > ---
> >  drivers/hid/hid-roccat-kone.c | 12 ++++++------
> >  1 file changed, 6 insertions(+), 6 deletions(-)
> >
> > diff --git a/drivers/hid/hid-roccat-kone.c b/drivers/hid/hid-roccat-kone.c
> > index 76da04801ca9..f0c35c05e702 100644
> > --- a/drivers/hid/hid-roccat-kone.c
> > +++ b/drivers/hid/hid-roccat-kone.c
> > @@ -403,7 +403,7 @@ static ssize_t kone_sysfs_show_actual_profile(struct device *dev,
> >  {
> >         struct kone_device *kone =
> >                         hid_get_drvdata(dev_get_drvdata(dev->parent->parent));
> > -       return snprintf(buf, PAGE_SIZE, "%d\n", kone->actual_profile);
> > +       return sysfs_emit(buf, "%d\n", kone->actual_profile);
> >  }
> >  static DEVICE_ATTR(actual_profile, 0440, kone_sysfs_show_actual_profile, NULL);
> >
> > @@ -412,7 +412,7 @@ static ssize_t kone_sysfs_show_actual_dpi(struct device *dev,
> >  {
> >         struct kone_device *kone =
> >                         hid_get_drvdata(dev_get_drvdata(dev->parent->parent));
> > -       return snprintf(buf, PAGE_SIZE, "%d\n", kone->actual_dpi);
> > +       return sysfs_emit(buf, "%d\n", kone->actual_dpi);
> >  }
> >  static DEVICE_ATTR(actual_dpi, 0440, kone_sysfs_show_actual_dpi, NULL);
> >
> > @@ -435,7 +435,7 @@ static ssize_t kone_sysfs_show_weight(struct device *dev,
> >
> >         if (retval)
> >                 return retval;
> > -       return snprintf(buf, PAGE_SIZE, "%d\n", weight);
> > +       return sysfs_emit(buf, "%d\n", weight);
> >  }
> >  static DEVICE_ATTR(weight, 0440, kone_sysfs_show_weight, NULL);
> >
> > @@ -444,7 +444,7 @@ static ssize_t kone_sysfs_show_firmware_version(struct device *dev,
> >  {
> >         struct kone_device *kone =
> >                         hid_get_drvdata(dev_get_drvdata(dev->parent->parent));
> > -       return snprintf(buf, PAGE_SIZE, "%d\n", kone->firmware_version);
> > +       return sysfs_emit(buf, "%d\n", kone->firmware_version);
> >  }
> >  static DEVICE_ATTR(firmware_version, 0440, kone_sysfs_show_firmware_version,
> >                    NULL);
> > @@ -454,7 +454,7 @@ static ssize_t kone_sysfs_show_tcu(struct device *dev,
> >  {
> >         struct kone_device *kone =
> >                         hid_get_drvdata(dev_get_drvdata(dev->parent->parent));
> > -       return snprintf(buf, PAGE_SIZE, "%d\n", kone->settings.tcu);
> > +       return sysfs_emit(buf, "%d\n", kone->settings.tcu);
> >  }
> >
> >  static int kone_tcu_command(struct usb_device *usb_dev, int number)
> > @@ -556,7 +556,7 @@ static ssize_t kone_sysfs_show_startup_profile(struct device *dev,
> >  {
> >         struct kone_device *kone =
> >                         hid_get_drvdata(dev_get_drvdata(dev->parent->parent));
> > -       return snprintf(buf, PAGE_SIZE, "%d\n", kone->settings.startup_profile);
> > +       return sysfs_emit(buf, "%d\n", kone->settings.startup_profile);
> >  }
> >
> >  static ssize_t kone_sysfs_set_startup_profile(struct device *dev,
> > --
> > 2.37.3
> >
> 

      reply	other threads:[~2022-10-10 11:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-08 19:10 [PATCH 1/3] HID: roccat: Convert snprintf() to sysfs_emit() Jules Irenge
2022-10-10  8:55 ` Benjamin Tissoires
2022-10-10 11:35   ` Jules Irenge [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=Y0QDkCJhR5vcLmDP@octinomon \
    --to=jbi.octave@gmail.com \
    --cc=benjamin.tissoires@redhat.com \
    --cc=erazor_de@users.sourceforge.net \
    --cc=jikos@kernel.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.