Hi, On 03/12/2013 10:44 AM, Hongbo Zhang wrote: > On 12 March 2013 13:38, Guenter Roeck <linux@xxxxxxxxxxxx> wrote: >> On Fri, Mar 08, 2013 at 04:13:30PM +0800, Hongbo Zhang wrote: >>> This patch moves the data tables from driver/power/ab8500_bmdata.c to a common >>> header file include/linux/power/ab8500.h, so that other modules such as ab8500 >>> hwmon can use these data. This patch also renames these variable names to >>> eliminate CamelCase warnings from checkpatch.pl, and adds const attribute to >>> these data. [...] >> I don't think it is a good idea to define static variables in an include >> file. >> > Hmm.. this part is more difficult than the hwmon itself from my point of view, I think Guenter meant leaving the data tables inside a .c file in drivers/power/, but declaring them as extern variables in a public header file in include/linux/power/, instead of having extern declarations in the importing driver (hwmon). This is the standard practice when variables need to be shared between drivers. Regards, Francesco _______________________________________________ lm-sensors mailing list lm-sensors@xxxxxxxxxxxxxx http://lists.lm-sensors.org/mailman/listinfo/lm-sensors