Revert "regulator: fan53555: support reboot"

This reverts commit 7d0153aa70.

Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I384b97e360d3954ea3798a127692d76c41433110
This commit is contained in:
Elaine Zhang
2023-01-30 10:41:55 +08:00
committed by Tao Huang
parent 5df3a678bf
commit 91c0d689ea

View File

@@ -777,45 +777,8 @@ static int fan53555_regulator_probe(struct i2c_client *client,
ret = fan53555_regulator_register(di, &config);
if (ret < 0)
dev_err(&client->dev, "Failed to register regulator!\n");
return ret;
}
static void fan53555_regulator_shutdown(struct i2c_client *client)
{
struct fan53555_device_info *di;
int ret;
di = i2c_get_clientdata(client);
dev_info(di->dev, "fan53555..... reset\n");
switch (di->vendor) {
case FAN53555_VENDOR_FAIRCHILD:
case FAN53555_VENDOR_RK:
case FAN53555_VENDOR_SILERGY:
ret = regmap_update_bits(di->regmap, di->slew_reg,
CTL_RESET, CTL_RESET);
break;
case FAN53555_VENDOR_TCS:
ret = regmap_update_bits(di->regmap, TCS452X_LIMCONF,
CTL_RESET, CTL_RESET);
/*
* the device can't return 'ack' during the reset,
* it will return -ENXIO, ignore this error.
*/
if (ret == -ENXIO)
ret = 0;
break;
default:
ret = -EINVAL;
break;
}
if (ret < 0)
dev_err(di->dev, "reset: force fan53555_reset error! ret=%d\n", ret);
else
dev_info(di->dev, "reset: force fan53555_reset ok!\n");
}
static const struct i2c_device_id fan53555_id[] = {
@@ -845,7 +808,6 @@ static struct i2c_driver fan53555_regulator_driver = {
.of_match_table = of_match_ptr(fan53555_dt_ids),
},
.probe = fan53555_regulator_probe,
.shutdown = fan53555_regulator_shutdown,
.id_table = fan53555_id,
};