lkml.org 
[lkml]   [2012]   [Mar]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRE: [PATCH 2/6] ab8500_btemp: Get rid of 'enum adc_therm'
> This is the same as abx500_adc_therm, but when the former is used,
> the following warning flood pops up:
>
> drivers/power/ab8500_btemp.c: In function
> 'ab8500_btemp_batctrl_volt_to_res':
> ab8500_btemp.c:150:25: warning: comparison between 'enum
> abx500_adc_therm' and 'enum adc_therm' [-Wenum-compare]
> ab8500_btemp.c: In function 'ab8500_btemp_curr_source_enable':
> ab8500_btemp.c:212:25: warning: comparison between 'enum
> abx500_adc_therm' and 'enum adc_therm' [-Wenum-compare]
> ab8500_btemp.c:244:32: warning: comparison between 'enum
> abx500_adc_therm' and 'enum adc_therm' [-Wenum-compare]
> ab8500_btemp.c: In function 'ab8500_btemp_measure_temp':
> ab8500_btemp.c:462:25: warning: comparison between 'enum
> abx500_adc_therm' and 'enum adc_therm' [-Wenum-compare]
> ab8500_btemp.c: In function 'ab8500_btemp_id':
> ab8500_btemp.c:528:121: warning: comparison between 'enum
> abx500_adc_therm' and 'enum adc_therm' [-Wenum-compare]
> ab8500_btemp.c:551:25: warning: comparison between 'enum
> abx500_adc_therm' and 'enum adc_therm' [-Wenum-compare]
>
> This patch fixes the issue by switching the driver to use more
> namespace-friendly enum.
>
> Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
> ---
Signed-off-by: Arun Murthy <arun.murthy@stericsson.com>
\
 
 \ /
  Last update: 2012-03-14 05:29    [W:0.061 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site