Skip to content

Commit

Permalink
Fixed minor bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Iiro Vuorio committed Oct 24, 2018
1 parent 9df3c26 commit 872350a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions amg88xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ static ssize_t store_interrupt_state(struct device *dev, struct device_attribute

device = dev_get_drvdata(dev);

if (sysfs_streq("enabled\n", buf)) {
if (sysfs_streq("enabled", buf)) {
state = INT_ENABLED;
} else if (sysfs_streq("disabled", buf)) {
state = INT_DISABLED;
Expand Down Expand Up @@ -855,7 +855,7 @@ static DEVICE_ATTR(framerate,

// TODO all the rest of the sysfs stuff

static const struct attribute *amg88xx_attrs[] = {
static struct attribute *amg88xx_attrs[] = {
&dev_attr_sensor.attr,
&dev_attr_thermistor.attr,
&dev_attr_device_mode.attr,
Expand Down

0 comments on commit 872350a

Please sign in to comment.