aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorOlliver Schinagl <oliver@schinagl.nl>2015-10-26 22:32:37 +0100
committerThierry Reding <thierry.reding@gmail.com>2015-11-10 13:06:46 +0100
commit65cdc6914a959d8e1ea562f05fb323a0b8cb7cb1 (patch)
treeb16b7c918e6b226d4fef008facb9235653ef6986 /include
parentpwm: sysfs: Remove unnecessary temporary variable (diff)
downloadlinux-dev-65cdc6914a959d8e1ea562f05fb323a0b8cb7cb1.tar.xz
linux-dev-65cdc6914a959d8e1ea562f05fb323a0b8cb7cb1.zip
pwm: sysfs: Make use of the DEVICE_ATTR_[RW][WO] macro's
For the npwm property the PWM sysfs interface already made use of the DEVICE_ATTR_RO macro. This patch expands this to the other sysfs properties so that the code base is concise and makes use of this helpful macro. This has the advantage of slightly reducing the code size, improving readability and no longer using magic values for permissions. Signed-off-by: Olliver Schinagl <oliver@schinagl.nl> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions