make build work thing
parent
4168ae8de1
commit
1076fe28af
|
@ -194,16 +194,6 @@ static int tps6518x_remove(struct i2c_client *i2c)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int tps6518x_suspend(struct i2c_client *client, pm_message_t state)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int tps6518x_resume(struct i2c_client *client)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Return 0 if detection is successful, -ENODEV otherwise */
|
/* Return 0 if detection is successful, -ENODEV otherwise */
|
||||||
static int tps6518x_detect(struct i2c_client *client,
|
static int tps6518x_detect(struct i2c_client *client,
|
||||||
struct i2c_board_info *info)
|
struct i2c_board_info *info)
|
||||||
|
@ -275,8 +265,6 @@ static struct i2c_driver tps6518x_driver = {
|
||||||
},
|
},
|
||||||
.probe = tps6518x_probe,
|
.probe = tps6518x_probe,
|
||||||
.remove = tps6518x_remove,
|
.remove = tps6518x_remove,
|
||||||
.suspend = tps6518x_suspend,
|
|
||||||
.resume = tps6518x_resume,
|
|
||||||
.id_table = tps6518x_id,
|
.id_table = tps6518x_id,
|
||||||
.detect = tps6518x_detect,
|
.detect = tps6518x_detect,
|
||||||
.address_list = &normal_i2c[0],
|
.address_list = &normal_i2c[0],
|
||||||
|
|
|
@ -553,7 +553,7 @@ static int tps6518x_pmic_dt_parse_pdata(struct platform_device *pdev,
|
||||||
|
|
||||||
rdata->id = i;
|
rdata->id = i;
|
||||||
rdata->initdata = of_get_regulator_init_data(&pdev->dev,
|
rdata->initdata = of_get_regulator_init_data(&pdev->dev,
|
||||||
reg_np);
|
reg_np, &tps6518x_reg[i]);
|
||||||
rdata->reg_node = reg_np;
|
rdata->reg_node = reg_np;
|
||||||
rdata++;
|
rdata++;
|
||||||
}
|
}
|
||||||
|
@ -751,7 +751,7 @@ static int __init tps6518x_setup(char *options)
|
||||||
if (!*opt)
|
if (!*opt)
|
||||||
continue;
|
continue;
|
||||||
if (!strncmp(opt, "pass=", 5)) {
|
if (!strncmp(opt, "pass=", 5)) {
|
||||||
ret = strict_strtoul((const char *)(opt + 5), 0, &ulResult);
|
ret = kstrtoul((const char *)(opt + 5), 0, &ulResult);
|
||||||
tps6518x_pass_num = ulResult;
|
tps6518x_pass_num = ulResult;
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -760,7 +760,7 @@ static int __init tps6518x_setup(char *options)
|
||||||
int offs = 5;
|
int offs = 5;
|
||||||
if (opt[5] == '-')
|
if (opt[5] == '-')
|
||||||
offs = 6;
|
offs = 6;
|
||||||
ret = strict_strtoul((const char *)(opt + offs), 0, &ulResult);
|
ret = kstrtoul((const char *)(opt + offs), 0, &ulResult);
|
||||||
tps6518x_vcom = (int) ulResult;
|
tps6518x_vcom = (int) ulResult;
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -782,7 +782,7 @@ static int __init tps65182_setup(char *options)
|
||||||
if (!*opt)
|
if (!*opt)
|
||||||
continue;
|
continue;
|
||||||
if (!strncmp(opt, "pass=", 5)) {
|
if (!strncmp(opt, "pass=", 5)) {
|
||||||
ret = strict_strtoul((const char *)(opt + 5), 0, &ulResult);
|
ret = kstrtoul((const char *)(opt + 5), 0, &ulResult);
|
||||||
tps6518x_pass_num = ulResult;
|
tps6518x_pass_num = ulResult;
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -791,7 +791,7 @@ static int __init tps65182_setup(char *options)
|
||||||
int offs = 5;
|
int offs = 5;
|
||||||
if (opt[5] == '-')
|
if (opt[5] == '-')
|
||||||
offs = 6;
|
offs = 6;
|
||||||
ret = strict_strtoul((const char *)(opt + offs), 0, &ulResult);
|
ret = kstrtoul((const char *)(opt + offs), 0, &ulResult);
|
||||||
tps6518x_vcom = (int) ulResult;
|
tps6518x_vcom = (int) ulResult;
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in New Issue