cpufreq: rewrite cpufreq_driver->flags using shift operator
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 2 Oct 2013 08:43:17 +0000 (14:13 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 15 Oct 2013 22:50:23 +0000 (00:50 +0200)
commit6461f018e7ad08863b55c386bf694683e4e2e86e
tree6095679a7304663610868f402e4b55c2f0d5866b
parent037ce8397d23b2f84ccfb879cf4b43277b0454e3
cpufreq: rewrite cpufreq_driver->flags using shift operator

Currently cpufreq_driver's flags are defined directly using 0x1, 0x2, 0x4, 0x8,
etc.. As the list grows it becomes less readable..

Use bitwise shift operator << to generate these numbers for respective
positions.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/linux/cpufreq.h