Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Small fixes. Now compiles.

  • Loading branch information...
commit 3a55515d26bf982c735d0f7a0eca590de2fdaba6 1 parent 56f7c3c
@jkunkee authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  drivers/misc/hmc6343.c
View
3  drivers/misc/hmc6343.c
@@ -569,10 +569,11 @@ static ssize_t hmc6343_show_sleep(struct device *dev,
struct device_attribute *attr, char *buf)
{
u8 op_1;
+ struct i2c_client *client = to_i2c_client(dev);
hmc6343_read_op_1(client, &op_1);
// Bits 3 and 4 are the current mode - TODO: test this
- if (op_1 & 0x18 == 0) {
+ if ( (op_1 & 0x18) == 0) {
return sprintf(buf, "[1] = enter sleep\n 0 = exit sleep\n");
} else {
return sprintf(buf, " 1 = enter sleep\n[0] = exit sleep\n");
Please sign in to comment.
Something went wrong with that request. Please try again.