* [PATCH] devfreq: move declaration of DEVICE_ATTR_RW(min_freq) [not found] <CGME20191206101145eucas1p26ed05a4d6d805c26c8ad92ad6b602f9d@eucas1p2.samsung.com> @ 2019-12-06 10:11 ` Kamil Konieczny 2019-12-09 3:25 ` Chanwoo Choi 0 siblings, 1 reply; 2+ messages in thread From: Kamil Konieczny @ 2019-12-06 10:11 UTC (permalink / raw) To: k.konieczny Cc: Bartlomiej Zolnierkiewicz, Chanwoo Choi, Krzysztof Kozlowski, Kyungmin Park, linux-kernel, linux-pm, Marek Szyprowski, MyungJoo Ham Declaration of DEVICE_ATTR_RW(min_freq) is placed after function max_freq_store. Move it to the correct place after min_freq_show. Signed-off-by: Kamil Konieczny <k.konieczny@samsung.com> --- drivers/devfreq/devfreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c index 1786a86b1779..46a7ff7c2994 100644 --- a/drivers/devfreq/devfreq.c +++ b/drivers/devfreq/devfreq.c @@ -1368,6 +1368,7 @@ static ssize_t min_freq_show(struct device *dev, struct device_attribute *attr, return sprintf(buf, "%lu\n", min_freq); } +static DEVICE_ATTR_RW(min_freq); static ssize_t max_freq_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) @@ -1391,7 +1392,6 @@ static ssize_t max_freq_store(struct device *dev, struct device_attribute *attr, return count; } -static DEVICE_ATTR_RW(min_freq); static ssize_t max_freq_show(struct device *dev, struct device_attribute *attr, char *buf) -- 2.24.0 ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] devfreq: move declaration of DEVICE_ATTR_RW(min_freq) 2019-12-06 10:11 ` [PATCH] devfreq: move declaration of DEVICE_ATTR_RW(min_freq) Kamil Konieczny @ 2019-12-09 3:25 ` Chanwoo Choi 0 siblings, 0 replies; 2+ messages in thread From: Chanwoo Choi @ 2019-12-09 3:25 UTC (permalink / raw) To: Kamil Konieczny Cc: Bartlomiej Zolnierkiewicz, Krzysztof Kozlowski, Kyungmin Park, linux-kernel, linux-pm, Marek Szyprowski, MyungJoo Ham Hi Kamil, Looks good to me. Applied it. On later, better to add 'PM / ' prefix for patch title and use capital char for first word as following: devfreq: move declaration of DEVICE_ATTR_RW(min_freq) -> PM / devfreq: Move declaration of DEVICE_ATTR_RW(min_freq) On 12/6/19 7:11 PM, Kamil Konieczny wrote: > Declaration of DEVICE_ATTR_RW(min_freq) is placed after function > max_freq_store. Move it to the correct place after min_freq_show. > > Signed-off-by: Kamil Konieczny <k.konieczny@samsung.com> > --- > drivers/devfreq/devfreq.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c > index 1786a86b1779..46a7ff7c2994 100644 > --- a/drivers/devfreq/devfreq.c > +++ b/drivers/devfreq/devfreq.c > @@ -1368,6 +1368,7 @@ static ssize_t min_freq_show(struct device *dev, struct device_attribute *attr, > > return sprintf(buf, "%lu\n", min_freq); > } > +static DEVICE_ATTR_RW(min_freq); > > static ssize_t max_freq_store(struct device *dev, struct device_attribute *attr, > const char *buf, size_t count) > @@ -1391,7 +1392,6 @@ static ssize_t max_freq_store(struct device *dev, struct device_attribute *attr, > > return count; > } > -static DEVICE_ATTR_RW(min_freq); > > static ssize_t max_freq_show(struct device *dev, struct device_attribute *attr, > char *buf) > -- Best Regards, Chanwoo Choi Samsung Electronics ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-12-09 3:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CGME20191206101145eucas1p26ed05a4d6d805c26c8ad92ad6b602f9d@eucas1p2.samsung.com>
2019-12-06 10:11 ` [PATCH] devfreq: move declaration of DEVICE_ATTR_RW(min_freq) Kamil Konieczny
2019-12-09 3:25 ` Chanwoo Choi
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®