We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f7a0c6 commit bb3d498Copy full SHA for bb3d498
drivers/rtc/rtc-rv3028.c
@@ -120,8 +120,9 @@ static ssize_t timestamp0_show(struct device *dev,
120
{
121
struct rv3028_data *rv3028 = dev_get_drvdata(dev->parent);
122
struct rtc_time tm;
123
- int ret, count;
+ unsigned int count;
124
u8 date[6];
125
+ int ret;
126
127
ret = regmap_read(rv3028->regmap, RV3028_TS_COUNT, &count);
128
if (ret)
@@ -156,7 +157,8 @@ static ssize_t timestamp0_count_show(struct device *dev,
156
157
struct device_attribute *attr, char *buf)
158
159
160
161
162
163
164
0 commit comments