Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 326207
b: refs/heads/master
c: 860f373
h: refs/heads/master
i:
  326205: 1eed3a7
  326203: 73a6ea2
  326199: 4f048cd
  326191: a58beec
  326175: 75152c3
  326143: 789f872
v: v3
  • Loading branch information
Guenter Roeck committed Sep 24, 2012
1 parent e8e1255 commit 3e79982
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cc00e4ddbf00d5ee6d8b7df6d4b04d98f3d99af5
refs/heads/master: 860f37319e9a1141b041ca2e77ca121dccde4b93
21 changes: 1 addition & 20 deletions trunk/drivers/hwmon/lm70.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,26 +124,7 @@ static DEVICE_ATTR(temp1_input, S_IRUGO, lm70_sense_temp, NULL);
static ssize_t lm70_show_name(struct device *dev, struct device_attribute
*devattr, char *buf)
{
struct lm70 *p_lm70 = dev_get_drvdata(dev);
int ret;

switch (p_lm70->chip) {
case LM70_CHIP_LM70:
ret = sprintf(buf, "lm70\n");
break;
case LM70_CHIP_TMP121:
ret = sprintf(buf, "tmp121\n");
break;
case LM70_CHIP_LM71:
ret = sprintf(buf, "lm71\n");
break;
case LM70_CHIP_LM74:
ret = sprintf(buf, "lm74\n");
break;
default:
ret = -EINVAL;
}
return ret;
return sprintf(buf, "%s\n", to_spi_device(dev)->modalias);
}

static DEVICE_ATTR(name, S_IRUGO, lm70_show_name, NULL);
Expand Down

0 comments on commit 3e79982

Please sign in to comment.