pwm: sysfs: Make use of the DEVICE_ATTR_[RW][WO] macro's
authorOlliver Schinagl <oliver@schinagl.nl>
Mon, 26 Oct 2015 21:32:37 +0000 (22:32 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Tue, 10 Nov 2015 12:06:46 +0000 (13:06 +0100)
commit65cdc6914a959d8e1ea562f05fb323a0b8cb7cb1
treeb16b7c918e6b226d4fef008facb9235653ef6986
parent0344d0d69b3360ec551581c141c6599a0dcb5f27
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>
drivers/pwm/sysfs.c
This page took 0.026778 seconds and 5 git commands to generate.