Lines Matching +full:use +full:- +full:case
1 // SPDX-License-Identifier: GPL-2.0-only
8 * Author: Chris Zhong <zyw@rock-chips.com>
9 * Author: Zhang Qing <zhangqing@rock-chips.com>
27 case RK806_POWER_EN0 ... RK806_POWER_EN5: in rk806_is_volatile_reg()
28 case RK806_DVS_START_CTRL ... RK806_INT_MSK1: in rk806_is_volatile_reg()
39 * - Technically the ROUND_30s bit makes RTC_CTRL_REG volatile, but in rk808_is_volatile_reg()
40 * we don't use that feature. It's better to cache. in rk808_is_volatile_reg()
41 * - It's unlikely we care that RK808_DEVCTRL_REG is volatile since in rk808_is_volatile_reg()
42 * bits are cleared in case when we shutoff anyway, but better safe. in rk808_is_volatile_reg()
46 case RK808_SECONDS_REG ... RK808_WEEKS_REG: in rk808_is_volatile_reg()
47 case RK808_RTC_STATUS_REG: in rk808_is_volatile_reg()
48 case RK808_VB_MON_REG: in rk808_is_volatile_reg()
49 case RK808_THERMAL_REG: in rk808_is_volatile_reg()
50 case RK808_DCDC_UV_STS_REG: in rk808_is_volatile_reg()
51 case RK808_LDO_UV_STS_REG: in rk808_is_volatile_reg()
52 case RK808_DCDC_PG_REG: in rk808_is_volatile_reg()
53 case RK808_LDO_PG_REG: in rk808_is_volatile_reg()
54 case RK808_DEVCTRL_REG: in rk808_is_volatile_reg()
55 case RK808_INT_STS_REG1: in rk808_is_volatile_reg()
56 case RK808_INT_STS_REG2: in rk808_is_volatile_reg()
67 * we don't use that feature. It's better to cache. in rk816_is_volatile_reg()
71 case RK808_SECONDS_REG ... RK808_WEEKS_REG: in rk816_is_volatile_reg()
72 case RK808_RTC_STATUS_REG: in rk816_is_volatile_reg()
73 case RK808_VB_MON_REG: in rk816_is_volatile_reg()
74 case RK808_THERMAL_REG: in rk816_is_volatile_reg()
75 case RK816_DCDC_EN_REG1: in rk816_is_volatile_reg()
76 case RK816_DCDC_EN_REG2: in rk816_is_volatile_reg()
77 case RK816_INT_STS_REG1: in rk816_is_volatile_reg()
78 case RK816_INT_STS_REG2: in rk816_is_volatile_reg()
79 case RK816_INT_STS_REG3: in rk816_is_volatile_reg()
80 case RK808_DEVCTRL_REG: in rk816_is_volatile_reg()
81 case RK816_SUP_STS_REG: in rk816_is_volatile_reg()
82 case RK816_GGSTS_REG: in rk816_is_volatile_reg()
83 case RK816_ZERO_CUR_ADC_REGH: in rk816_is_volatile_reg()
84 case RK816_ZERO_CUR_ADC_REGL: in rk816_is_volatile_reg()
85 case RK816_GASCNT_REG(0) ... RK816_BAT_VOL_REGL: in rk816_is_volatile_reg()
96 * - Technically the ROUND_30s bit makes RTC_CTRL_REG volatile, but in rk817_is_volatile_reg()
97 * we don't use that feature. It's better to cache. in rk817_is_volatile_reg()
101 case RK817_SECONDS_REG ... RK817_WEEKS_REG: in rk817_is_volatile_reg()
102 case RK817_RTC_STATUS_REG: in rk817_is_volatile_reg()
103 case RK817_CODEC_DTOP_LPT_SRST: in rk817_is_volatile_reg()
104 case RK817_GAS_GAUGE_ADC_CONFIG0 ... RK817_GAS_GAUGE_CUR_ADC_K0: in rk817_is_volatile_reg()
105 case RK817_PMIC_CHRG_STS: in rk817_is_volatile_reg()
106 case RK817_PMIC_CHRG_OUT: in rk817_is_volatile_reg()
107 case RK817_PMIC_CHRG_IN: in rk817_is_volatile_reg()
108 case RK817_INT_STS_REG0: in rk817_is_volatile_reg()
109 case RK817_INT_STS_REG1: in rk817_is_volatile_reg()
110 case RK817_INT_STS_REG2: in rk817_is_volatile_reg()
111 case RK817_SYS_STS: in rk817_is_volatile_reg()
207 data = device_get_match_data(&client->dev); in rk8xx_i2c_probe()
209 return -ENODEV; in rk8xx_i2c_probe()
211 regmap = devm_regmap_init_i2c(client, data->regmap_cfg); in rk8xx_i2c_probe()
213 return dev_err_probe(&client->dev, PTR_ERR(regmap), in rk8xx_i2c_probe()
216 return rk8xx_probe(&client->dev, data->variant, client->irq, regmap); in rk8xx_i2c_probe()
221 rk8xx_shutdown(&client->dev); in rk8xx_i2c_shutdown()
240 .name = "rk8xx-i2c",
250 MODULE_AUTHOR("Chris Zhong <zyw@rock-chips.com>");
251 MODULE_AUTHOR("Zhang Qing <zhangqing@rock-chips.com>");