#endif
schedule_delayed_work(&di->work, 1*HZ);
}
-
+#if 0
static void bq27320_set(void)
{
struct bq27320_device_info *di;
else
printk("bq27320 write 0x21 success\n");
}
-
+#endif
static int bq27320_battery_suspend(struct i2c_client *client, pm_message_t mesg)
{
schedule_delayed_work(&bq27320_di->work, msecs_to_jiffies(50));
return 0;
}
+#if 0
static int bq27320_is_in_rom_mode(void)
{
int ret = 0;
else
return 0;
}
-
+#endif
#ifdef CONFIG_OF
static struct of_device_id bq27320_battery_of_match[] = {
{ .compatible = "ti,bq27320"},
{
struct bq27320_device_info *di;
int retval = 0;
- struct bq27320_board *pdev;
struct device_node *bq27320_node;
u8 buf[2];
struct i2c_client *i2c;
int num_regulators;
struct regulator_dev **rdev;
-// struct early_suspend act8846_suspend;
+#ifdef CONFIG_HAS_EARLYSUSPEND
+ struct early_suspend act8846_suspend;
+#endif
int irq_base;
int chip_irq;
int pmic_sleep_gpio; /* */
static int act8846_dcdc_set_voltage_time_sel(struct regulator_dev *dev, unsigned int old_selector,
unsigned int new_selector)
{
- struct act8846 *act8846 = rdev_get_drvdata(dev);
- int ret =0,old_volt, new_volt;
+ int old_volt, new_volt;
old_volt = act8846_dcdc_list_voltage(dev, old_selector);
if (old_volt < 0)
#endif
-int act8846_device_shutdown(void)
+void act8846_device_shutdown(void)
{
- int ret;
- int err = -1;
struct act8846 *act8846 = g_act8846;
printk("%s\n",__func__);
return err;
}
#endif
- return 0;
}
EXPORT_SYMBOL_GPL(act8846_device_shutdown);
struct syr82x_board *pdata;
struct device_node *regs;
struct device_node *syr82x_np;
- int gpio,count;
+ int count;
DBG("%s,line=%d\n", __func__,__LINE__);
syr82x_np = of_node_get(syr82x->dev->of_node);
#define act8846_NUM_REGULATORS 12
struct act8846;
-int act8846_device_shutdown(void);
+void act8846_device_shutdown(void);
struct act8846_board {
int irq;