1
0
Fork 0

make build work thing

martin/tpsdriverting
Martin T. H. Sandsmark 2018-12-20 17:31:46 +01:00
parent 4168ae8de1
commit 1076fe28af
2 changed files with 5 additions and 17 deletions

View File

@ -194,16 +194,6 @@ static int tps6518x_remove(struct i2c_client *i2c)
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 */
static int tps6518x_detect(struct i2c_client *client,
struct i2c_board_info *info)
@ -275,8 +265,6 @@ static struct i2c_driver tps6518x_driver = {
},
.probe = tps6518x_probe,
.remove = tps6518x_remove,
.suspend = tps6518x_suspend,
.resume = tps6518x_resume,
.id_table = tps6518x_id,
.detect = tps6518x_detect,
.address_list = &normal_i2c[0],

View File

@ -553,7 +553,7 @@ static int tps6518x_pmic_dt_parse_pdata(struct platform_device *pdev,
rdata->id = i;
rdata->initdata = of_get_regulator_init_data(&pdev->dev,
reg_np);
reg_np, &tps6518x_reg[i]);
rdata->reg_node = reg_np;
rdata++;
}
@ -751,7 +751,7 @@ static int __init tps6518x_setup(char *options)
if (!*opt)
continue;
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;
if (ret < 0)
return ret;
@ -760,7 +760,7 @@ static int __init tps6518x_setup(char *options)
int offs = 5;
if (opt[5] == '-')
offs = 6;
ret = strict_strtoul((const char *)(opt + offs), 0, &ulResult);
ret = kstrtoul((const char *)(opt + offs), 0, &ulResult);
tps6518x_vcom = (int) ulResult;
if (ret < 0)
return ret;
@ -782,7 +782,7 @@ static int __init tps65182_setup(char *options)
if (!*opt)
continue;
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;
if (ret < 0)
return ret;
@ -791,7 +791,7 @@ static int __init tps65182_setup(char *options)
int offs = 5;
if (opt[5] == '-')
offs = 6;
ret = strict_strtoul((const char *)(opt + offs), 0, &ulResult);
ret = kstrtoul((const char *)(opt + offs), 0, &ulResult);
tps6518x_vcom = (int) ulResult;
if (ret < 0)
return ret;