diff options
-rw-r--r-- | drivers/usb/wusbcore/wusbhc.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/drivers/usb/wusbcore/wusbhc.c b/drivers/usb/wusbcore/wusbhc.c index 94f401ab859f..a273a91cf667 100644 --- a/drivers/usb/wusbcore/wusbhc.c +++ b/drivers/usb/wusbcore/wusbhc.c | |||
@@ -84,8 +84,7 @@ static ssize_t wusb_trust_timeout_store(struct device *dev, | |||
84 | out: | 84 | out: |
85 | return result < 0 ? result : size; | 85 | return result < 0 ? result : size; |
86 | } | 86 | } |
87 | static DEVICE_ATTR(wusb_trust_timeout, 0644, wusb_trust_timeout_show, | 87 | static DEVICE_ATTR_RW(wusb_trust_timeout); |
88 | wusb_trust_timeout_store); | ||
89 | 88 | ||
90 | /* | 89 | /* |
91 | * Show the current WUSB CHID. | 90 | * Show the current WUSB CHID. |
@@ -145,7 +144,7 @@ static ssize_t wusb_chid_store(struct device *dev, | |||
145 | result = wusbhc_chid_set(wusbhc, &chid); | 144 | result = wusbhc_chid_set(wusbhc, &chid); |
146 | return result < 0 ? result : size; | 145 | return result < 0 ? result : size; |
147 | } | 146 | } |
148 | static DEVICE_ATTR(wusb_chid, 0644, wusb_chid_show, wusb_chid_store); | 147 | static DEVICE_ATTR_RW(wusb_chid); |
149 | 148 | ||
150 | 149 | ||
151 | static ssize_t wusb_phy_rate_show(struct device *dev, | 150 | static ssize_t wusb_phy_rate_show(struct device *dev, |
@@ -174,8 +173,7 @@ static ssize_t wusb_phy_rate_store(struct device *dev, | |||
174 | wusbhc->phy_rate = phy_rate; | 173 | wusbhc->phy_rate = phy_rate; |
175 | return size; | 174 | return size; |
176 | } | 175 | } |
177 | static DEVICE_ATTR(wusb_phy_rate, 0644, wusb_phy_rate_show, | 176 | static DEVICE_ATTR_RW(wusb_phy_rate); |
178 | wusb_phy_rate_store); | ||
179 | 177 | ||
180 | static ssize_t wusb_dnts_show(struct device *dev, | 178 | static ssize_t wusb_dnts_show(struct device *dev, |
181 | struct device_attribute *attr, | 179 | struct device_attribute *attr, |
@@ -205,7 +203,7 @@ static ssize_t wusb_dnts_store(struct device *dev, | |||
205 | 203 | ||
206 | return size; | 204 | return size; |
207 | } | 205 | } |
208 | static DEVICE_ATTR(wusb_dnts, 0644, wusb_dnts_show, wusb_dnts_store); | 206 | static DEVICE_ATTR_RW(wusb_dnts); |
209 | 207 | ||
210 | static ssize_t wusb_retry_count_show(struct device *dev, | 208 | static ssize_t wusb_retry_count_show(struct device *dev, |
211 | struct device_attribute *attr, | 209 | struct device_attribute *attr, |
@@ -234,8 +232,7 @@ static ssize_t wusb_retry_count_store(struct device *dev, | |||
234 | 232 | ||
235 | return size; | 233 | return size; |
236 | } | 234 | } |
237 | static DEVICE_ATTR(wusb_retry_count, 0644, wusb_retry_count_show, | 235 | static DEVICE_ATTR_RW(wusb_retry_count); |
238 | wusb_retry_count_store); | ||
239 | 236 | ||
240 | /* Group all the WUSBHC attributes */ | 237 | /* Group all the WUSBHC attributes */ |
241 | static struct attribute *wusbhc_attrs[] = { | 238 | static struct attribute *wusbhc_attrs[] = { |