[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Y++e6IMusukWJNw2@kroah.com>
Date: Fri, 17 Feb 2023 16:36:08 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: Angelo Compagnucci <angelo.compagnucci@...il.com>
Cc: Derek Kiernan <derek.kiernan@...inx.com>,
Dragan Cvetic <dragan.cvetic@...inx.com>,
Arnd Bergmann <arnd@...db.de>,
Angelo Compagnucci <angelo@...rulasolutions.com>,
Thierry Reding <thierry.reding@...il.com>,
Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>, linux-kernel@...r.kernel.org,
linux-pwm@...r.kernel.org
Subject: Re: [PATCH v2 1/3] misc: servo-pwm: driver for controlling servo
motors via PWM
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@...rulasolutions.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
Powered by blists - more mailing lists