From 6c5a910050ea29f3d93191a3d7e74dd42480b921 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 19 Jun 2013 10:08:40 +1000 Subject: [PATCH] drivers-w1-slaves-w1_ds2408c-add-magic-sequence-to-disable-p0-test-mode-fix don't use kerenldoc token to introduce a non-kerneldoc comment, tweak whitespace Cc: Evgeniy Polyakov Cc: Greg KH Cc: Jean-Francois Dagenais Signed-off-by: Andrew Morton --- drivers/w1/slaves/w1_ds2408.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/w1/slaves/w1_ds2408.c b/drivers/w1/slaves/w1_ds2408.c index 01fe4483778f..cb8a8e5d9573 100644 --- a/drivers/w1/slaves/w1_ds2408.c +++ b/drivers/w1/slaves/w1_ds2408.c @@ -302,7 +302,7 @@ error: return -EIO; } -/** +/* * This is a special sequence we must do to ensure the P0 output is not stuck * in test mode. This is described in rev 2 of the ds2408's datasheet * (http://datasheets.maximintegrated.com/en/ds/DS2408.pdf) under @@ -313,6 +313,7 @@ static int w1_f29_disable_test_mode(struct w1_slave *sl) int res; u8 magic[10] = {0x96, }; u64 rn = le64_to_cpu(*((u64*)&sl->reg_num)); + memcpy(&magic[1], &rn, 8); magic[9] = 0x3C; -- 2.39.5