aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/w1/slaves/w1_smem.c
diff options
context:
space:
mode:
authorAndrew F. Davis <afd@ti.com>2017-06-05 08:52:08 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-06-09 11:54:54 +0200
commitde0d6dbdbdb23ddb85f10d54a516e794f9a873e0 (patch)
tree835e0f7aca2983b9147913a228d8656d47aa6bc9 /drivers/w1/slaves/w1_smem.c
parentdrivers/fsi: Add module license to core driver (diff)
downloadlinux-dev-de0d6dbdbdb23ddb85f10d54a516e794f9a873e0.tar.xz
linux-dev-de0d6dbdbdb23ddb85f10d54a516e794f9a873e0.zip
w1: Add subsystem kernel public interface
Like other subsystems we should be able to define slave devices outside of the w1 directory. To do this we move public facing interface definitions to include/linux/w1.h and rename the internal definition file to w1_internal.h. As w1_family.h and w1_int.h contained almost entirely public driver interface definitions we simply removed these files and moved the remaining definitions into w1_internal.h. With this we can now start to move slave devices out of w1/slaves and into the subsystem based on the function they implement, again like other drivers. Signed-off-by: Andrew F. Davis <afd@ti.com> Reviewed-by: Sebastian Reichel <sre@kernel.org> Acked-by: Evgeniy Polyakov <zbr@ioremap.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/w1/slaves/w1_smem.c')
-rw-r--r--drivers/w1/slaves/w1_smem.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/w1/slaves/w1_smem.c b/drivers/w1/slaves/w1_smem.c
index 99b03bfb9941..e556b0caff71 100644
--- a/drivers/w1/slaves/w1_smem.c
+++ b/drivers/w1/slaves/w1_smem.c
@@ -27,9 +27,10 @@
#include <linux/device.h>
#include <linux/types.h>
-#include "../w1.h"
-#include "../w1_int.h"
-#include "../w1_family.h"
+#include <linux/w1.h>
+
+#define W1_FAMILY_SMEM_01 0x01
+#define W1_FAMILY_SMEM_81 0x81
static struct w1_family w1_smem_family_01 = {
.fid = W1_FAMILY_SMEM_01,