Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 292151
b: refs/heads/master
c: 430b4fc
h: refs/heads/master
i:
  292149: 2431a26
  292147: 9b16fa9
  292143: 45fee6e
v: v3
  • Loading branch information
Guenter Roeck authored and Guenter Roeck committed Mar 19, 2012
1 parent ae97945 commit e0f7244
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: a68abd32b911f9d3d0370c3992a770d4ea62496b
refs/heads/master: 430b4fcd82eb3e71254c1ea13998524301489f2f
9 changes: 6 additions & 3 deletions trunk/drivers/hwmon/ltc4245.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ static unsigned int ltc4245_get_current(struct device *dev, u8 reg)
unsigned int voltage;
unsigned int curr;

/* The strange looking conversions that follow are fixed-point
/*
* The strange looking conversions that follow are fixed-point
* math, since we cannot do floating point in the kernel.
*
* Step 1: convert sense register to microVolts
Expand Down Expand Up @@ -317,7 +318,8 @@ static ssize_t ltc4245_show_gpio(struct device *dev,
return snprintf(buf, PAGE_SIZE, "%u\n", val * 10);
}

/* These macros are used below in constructing device attribute objects
/*
* These macros are used below in constructing device attribute objects
* for use with sysfs_create_group() to make a sysfs device file
* for each register.
*/
Expand Down Expand Up @@ -391,7 +393,8 @@ LTC4245_POWER(power2_input, LTC4245_5VSENSE);
LTC4245_POWER(power3_input, LTC4245_3VSENSE);
LTC4245_POWER(power4_input, LTC4245_VEESENSE);

/* Finally, construct an array of pointers to members of the above objects,
/*
* Finally, construct an array of pointers to members of the above objects,
* as required for sysfs_create_group()
*/
static struct attribute *ltc4245_std_attributes[] = {
Expand Down

0 comments on commit e0f7244

Please sign in to comment.