aboutsummaryrefslogtreecommitdiff
path: root/crypto/digest.c
diff options
context:
space:
mode:
authorJean Delvare2007-07-05 20:36:12 +0200
committerMark M. Hoffman2007-10-09 22:56:30 -0400
commitb353a487b9d835da331edb443afedfd7977b3d76 (patch)
treed4fc64e99a9c9f7085437f581a24088befab7dfa /crypto/digest.c
parent1beeffe43311f64df8dd0ab08ff6b1858c58363f (diff)
hwmon: (lm85) Use dynamic sysfs callbacks
This lets us get rid of macro-generated functions and shrinks the driver size by about 10%. I used a new style suggested by Mark M. Hoffman to retrieve the channel number. Instead of: struct sensor_device_attribute *sda = to_sensor_dev_attr(attr); int nr = sda->index; I do: int nr = to_sensor_dev_attr(attr)->index; This looks better, and even allows the compiler to do some minor optimizations. Signed-off-by: Jean Delvare <khali@linux-fr.org> Acked-by: Krzysztof Helt <krzysztof.h1@wp.pl> Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
Diffstat (limited to 'crypto/digest.c')
0 files changed, 0 insertions, 0 deletions