Skip to content
Commit 65cdc691 authored by Olliver Schinagl's avatar Olliver Schinagl Committed by Thierry Reding
Browse files

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: default avatarOlliver Schinagl <oliver@schinagl.nl>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent 0344d0d6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment