From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Angelo Compagnucci <angelo.compagnucci@gmail.com>
Cc: "Derek Kiernan" <derek.kiernan@xilinx.com>,
"Dragan Cvetic" <dragan.cvetic@xilinx.com>,
"Arnd Bergmann" <arnd@arndb.de>,
"Angelo Compagnucci" <angelo@amarulasolutions.com>,
"Thierry Reding" <thierry.reding@gmail.com>,
"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
linux-kernel@vger.kernel.org, linux-pwm@vger.kernel.org
Subject: Re: [PATCH v2 1/3] misc: servo-pwm: driver for controlling servo motors via PWM
Date: Fri, 17 Feb 2023 16:36:08 +0100 [thread overview]
Message-ID: <Y++e6IMusukWJNw2@kroah.com> (raw)
In-Reply-To: <20230217145731.3018148-1-angelo@amarulasolutions.com>
On Fri, Feb 17, 2023 at 03:57:28PM +0100, Angelo Compagnucci wrote:
> This patch adds a simple driver to control servo motor position via
> PWM signal.
> The driver allows to set the angle from userspace, while min/max
> positions duty cycle and the motor degrees aperture are defined in
> the dts.
>
> Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
> ---
> MAINTAINERS | 6 ++
> drivers/misc/Kconfig | 11 +++
> drivers/misc/Makefile | 1 +
> drivers/misc/servo-pwm.c | 149 +++++++++++++++++++++++++++++++++++++++
You add sysfs files but do not document them in Documentation/ABI/ which
is required. Please do so in your next version of this patch.
> +static ssize_t degrees_show(struct device *dev, struct device_attribute *attr,
> + char *buf)
> +{
> + struct servo_pwm_data *data = dev_get_drvdata(dev);
> +
> + return snprintf(buf, PAGE_SIZE, "%u\n", data->degrees);
sysfs_emit() please.
thanks,
greg k-h
next prev parent reply other threads:[~2023-02-17 15:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-17 14:57 [PATCH v2 1/3] misc: servo-pwm: driver for controlling servo motors via PWM Angelo Compagnucci
2023-02-17 14:57 ` [PATCH v2 2/3] misc: servo-pwm: Add sysfs entries to control motor angle Angelo Compagnucci
2023-02-17 14:57 ` [PATCH v2 3/3] dt-bindings: leds: servo-pwm: Add new bindings for servo-pwm Angelo Compagnucci
2023-02-17 15:22 ` Rob Herring
2023-02-17 23:23 ` Rob Herring
2023-02-17 15:36 ` Greg Kroah-Hartman [this message]
2023-02-17 15:41 ` [PATCH v2 1/3] misc: servo-pwm: driver for controlling servo motors via PWM Angelo Compagnucci
[not found] ` <CA+_SqVYMZ7MErNr-HrbHj-=Q-5u1PizHQ_6TFkTOxB5=E8+9Dg@mail.gmail.com>
2023-02-17 15:48 ` Greg Kroah-Hartman
2023-02-17 16:12 ` Angelo Compagnucci
2023-02-17 15:50 ` Greg Kroah-Hartman
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=Y++e6IMusukWJNw2@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=angelo.compagnucci@gmail.com \
--cc=angelo@amarulasolutions.com \
--cc=arnd@arndb.de \
--cc=derek.kiernan@xilinx.com \
--cc=dragan.cvetic@xilinx.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pwm@vger.kernel.org \
--cc=thierry.reding@gmail.com \
--cc=u.kleine-koenig@pengutronix.de \
/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