|author||Jean Delvare <email@example.com>||2009-10-04 22:53:41 +0200|
|committer||Jean Delvare <firstname.lastname@example.org>||2009-10-04 22:53:41 +0200|
max6875: Discard obsolete detect method
There is no point in implementing a detect callback for the MAX6875, as this device can't be detected. It was there solely to handle "force" module parameters to instantiate devices, but now we have a better sysfs interface that can do the same. So we can get rid of the ugly module parameters and the detect callback. This basically divides the binary module size by 2. Signed-off-by: Jean Delvare <email@example.com> Acked-by: Wolfram Sang <firstname.lastname@example.org> Acked-by: Ben Gardner <email@example.com>
Diffstat (limited to 'Documentation/misc-devices')
1 files changed, 4 insertions, 2 deletions
diff --git a/Documentation/misc-devices/max6875 b/Documentation/misc-devices/max6875
index 10ca43cd1a7..1e89ee3ccc1 100644
@@ -42,10 +42,12 @@ General Remarks
Valid addresses for the MAX6875 are 0x50 and 0x52.
Valid addresses for the MAX6874 are 0x50, 0x52, 0x54 and 0x56.
-The driver does not probe any address, so you must force the address.
+The driver does not probe any address, so you explicitly instantiate the
-$ modprobe max6875 force=0,0x50
+$ modprobe max6875
+$ echo max6875 0x50 > /sys/bus/i2c/devices/i2c-0/new_device
The MAX6874/MAX6875 ignores address bit 0, so this driver attaches to multiple
addresses. For example, for address 0x50, it also reserves 0x51.