mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-05 19:31:57 -04:00
power: bq25980_mmi_iio: Remove unused variables
Change-Id: I041a1a3edddb183c3e3b276df6529eecef883744
This commit is contained in:
parent
60ec3bd47c
commit
f3a9740b15
1 changed files with 1 additions and 2 deletions
|
|
@ -2060,7 +2060,6 @@ static DEVICE_ATTR(reg_addr, 0664, show_reg_addr, store_reg_addr);
|
|||
|
||||
static ssize_t show_reg_data(struct device *dev, struct device_attribute *attr, char *buf)
|
||||
{
|
||||
int ret;
|
||||
ssize_t size = 0;
|
||||
struct bq25980_device *bq = dev_get_drvdata(dev);
|
||||
if (!bq) {
|
||||
|
|
@ -2069,7 +2068,7 @@ static ssize_t show_reg_data(struct device *dev, struct device_attribute *attr,
|
|||
}
|
||||
if( ( bq->reg_addr >= 0 ) && (bq->reg_addr <= 0x37) )
|
||||
{
|
||||
ret = regmap_read(bq->regmap, bq->reg_addr, &bq->reg_data);
|
||||
regmap_read(bq->regmap, bq->reg_addr, &bq->reg_data);
|
||||
size = sprintf(buf, "reg[%02X]=0x%02X\n", bq->reg_addr, bq->reg_data);
|
||||
}else
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue