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 45cc2a7 commit f45d32dCopy full SHA for f45d32d
drivers/rtc/rtc-isl1208.c
@@ -188,7 +188,7 @@ isl1208_i2c_validate_client(struct i2c_client *client)
188
static int isl1208_set_xtoscb(struct i2c_client *client, int sr, int xtosb_val)
189
{
190
/* Do nothing if bit is already set to desired value */
191
- if ((sr & ISL1208_REG_SR_XTOSCB) == xtosb_val)
+ if (!!(sr & ISL1208_REG_SR_XTOSCB) == xtosb_val)
192
return 0;
193
194
if (xtosb_val)
@@ -944,7 +944,6 @@ isl1208_probe(struct i2c_client *client)
944
rc = isl1208_setup_irq(client, client->irq);
945
if (rc)
946
return rc;
947
-
948
} else {
949
clear_bit(RTC_FEATURE_UPDATE_INTERRUPT, isl1208->rtc->features);
950
}
0 commit comments