mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] pwm: some improvements to sysfs interface
@ 2014-08-05 15:12 Aurelio Colosimo
  2014-08-05 15:12 ` [PATCH 1/2] pwm: new field name added to pwm_device Aurelio Colosimo
  2014-08-05 15:12 ` [PATCH 2/2] pwm: new fields, max and resolution, added to sysfs Aurelio Colosimo
  0 siblings, 2 replies; 3+ messages in thread
From: Aurelio Colosimo @ 2014-08-05 15:12 UTC (permalink / raw)
  To: Thierry Reding, Randy Dunlap
  Cc: linux-pwm, linux-kernel, linux-doc, Aurelio Colosimo

This set of patches adds two more features in pwm sysfs, which I
developed for the driver of my pwm device (a virtualization of
AVR pwm outputs, not submitted to mainline yet):
    
- an optional static name for each pwm device, so that driver develop
  can give a name to the output itself, in a similar way as gpio system
  does;
    
- the attribute 'max', and the attribute 'resolution', in
  nanoseconds, specific for each pwm device.
    
  Each new field is initialized with a default (meaningful) value;
  anyway, if desired, pwm drivers maintainers should fix their
  drivers in order to use the new fields.
    
Aurelio Colosimo (2):
  pwm: new field name added to pwm_device
  pwm: new fields, max and resolution, added to sysfs

 drivers/pwm/core.c  |  2 ++
 drivers/pwm/sysfs.c | 29 ++++++++++++++++++++++++++++-
 include/linux/pwm.h |  3 +++
 3 files changed, 33 insertions(+), 1 deletion(-)


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-08-05 15:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-05 15:12 [PATCH 0/2] pwm: some improvements to sysfs interface Aurelio Colosimo
2014-08-05 15:12 ` [PATCH 1/2] pwm: new field name added to pwm_device Aurelio Colosimo
2014-08-05 15:12 ` [PATCH 2/2] pwm: new fields, max and resolution, added to sysfs Aurelio Colosimo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®