[PATCH 3/3] wm97xx_batt: Remove redundant header file

Marek Vasut marek.vasut at gmail.com
Sat Jun 12 08:47:33 EDT 2010


Dne So 12. června 2010 11:16:58 Eric Miao napsal(a):
> On Fri, Jun 4, 2010 at 9:07 AM, Marek Vasut <marek.vasut at gmail.com> wrote:
> > Signed-off-by: Marek Vasut <marek.vasut at gmail.com>
> > ---
> >  include/linux/wm97xx_batt.h |   16 ----------------
> >  1 files changed, 0 insertions(+), 16 deletions(-)
> >  delete mode 100644 include/linux/wm97xx_batt.h
> > 
> > diff --git a/include/linux/wm97xx_batt.h b/include/linux/wm97xx_batt.h
> > deleted file mode 100644
> > index a1d6419..0000000
> > --- a/include/linux/wm97xx_batt.h
> > +++ /dev/null
> > @@ -1,16 +0,0 @@
> > -#ifndef _LINUX_WM97XX_BAT_H
> > -#define _LINUX_WM97XX_BAT_H
> > -
> > -#include <linux/wm97xx.h>
> > -
> > -#warning This file will be removed soon, use wm97xx.h instead!
> > -
> > -#define wm97xx_batt_info wm97xx_batt_pdata
> > -
> > -#ifdef CONFIG_BATTERY_WM97XX
> > -void wm97xx_bat_set_pdata(struct wm97xx_batt_info *data);
> > -#else
> > -static inline void wm97xx_bat_set_pdata(struct wm97xx_batt_info *data)
> > {} -#endif
> > -
> > -#endif
> 
> A git grep of wm97xx_batt.h shows:
> 
> drivers/power/wm97xx_battery.c:/* The interface is deprecated, as well
> as linux/wm97xx_batt.h */
> 
> So you may want to remove that part as well. Otherwise looks good to me.

Thanks, good catch. But let's push this through a separate patch, shall we?



More information about the linux-arm-kernel mailing list