Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 326206
b: refs/heads/master
c: cc00e4d
h: refs/heads/master
v: v3
  • Loading branch information
Guenter Roeck committed Sep 24, 2012
1 parent 1eed3a7 commit e8e1255
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 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: e2d8c2b6de2db6d11afc661148b53691c2593f67
refs/heads/master: cc00e4ddbf00d5ee6d8b7df6d4b04d98f3d99af5
5 changes: 1 addition & 4 deletions trunk/drivers/hwmon/adcxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,7 @@ static ssize_t adcxx_set_max(struct device *dev,
static ssize_t adcxx_show_name(struct device *dev, struct device_attribute
*devattr, char *buf)
{
struct spi_device *spi = to_spi_device(dev);
struct adcxx *adc = spi_get_drvdata(spi);

return sprintf(buf, "adcxx%ds\n", adc->channels);
return sprintf(buf, "%s\n", to_spi_device(dev)->modalias);
}

static struct sensor_device_attribute ad_input[] = {
Expand Down

0 comments on commit e8e1255

Please sign in to comment.