summaryrefslogtreecommitdiffstats
path: root/drivers/aiodev/lm75.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/aiodev/lm75.c')
-rw-r--r--drivers/aiodev/lm75.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/aiodev/lm75.c b/drivers/aiodev/lm75.c
index 8e5948f468..1900636555 100644
--- a/drivers/aiodev/lm75.c
+++ b/drivers/aiodev/lm75.c
@@ -182,6 +182,8 @@ static int lm75_probe(struct device_d *dev)
clr_mask |= 1 << 5; /* not one-shot mode */
data->resolution = 12;
break;
+ default:
+ return -EINVAL;
}
/* configure as specified */