Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 28607
b: refs/heads/master
c: 46e07f6
h: refs/heads/master
i:
  28605: 9d01e86
  28603: dec457c
  28599: b241ffb
  28591: 8889708
  28575: f4422a4
  28543: 027412a
v: v3
  • Loading branch information
Evgeniy Polyakov authored and Greg Kroah-Hartman committed Jun 22, 2006
1 parent e6b5d43 commit 2a1fb9e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 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: bb5427b5466782ba0bbf56a4ed752e08b65a5d08
refs/heads/master: 46e07f6e5eb0e465e086b8f485f4238bd453e3e9
14 changes: 13 additions & 1 deletion trunk/drivers/w1/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,26 @@ menu "Dallas's 1-wire bus"
config W1
tristate "Dallas's 1-wire support"
---help---
Dallas's 1-wire bus is useful to connect slow 1-pin devices
Dallas' 1-wire bus is useful to connect slow 1-pin devices
such as iButtons and thermal sensors.

If you want W1 support, you should say Y here.

This W1 support can also be built as a module. If so, the module
will be called wire.ko.

config W1_CON
depends on CONNECTOR
bool "Userspace communication over connector"
default y
--- help ---
This allows to communicate with userspace using connector [Documentation/connector].
There are three types of messages between w1 core and userspace:
1. Events. They are generated each time new master or slave device found
either due to automatic or requested search.
2. Userspace commands. Includes read/write and search/alarm search comamnds.
3. Replies to userspace commands.

source drivers/w1/masters/Kconfig
source drivers/w1/slaves/Kconfig

Expand Down
4 changes: 0 additions & 4 deletions trunk/drivers/w1/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
# Makefile for the Dallas's 1-wire bus.
#

ifeq ($(CONFIG_CONNECTOR), n)
EXTRA_CFLAGS += -DNETLINK_DISABLED
endif

ifeq ($(CONFIG_W1_DS2433_CRC), y)
EXTRA_CFLAGS += -DCONFIG_W1_F23_CRC
endif
Expand Down
4 changes: 1 addition & 3 deletions trunk/drivers/w1/w1_netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "w1_log.h"
#include "w1_netlink.h"

#ifndef NETLINK_DISABLED
#if defined(CONFIG_W1_CON) && (defined(CONFIG_CONNECTOR) || (defined(CONFIG_CONNECTOR_MODULE) && defined(CONFIG_W1_MODULE)))
void w1_netlink_send(struct w1_master *dev, struct w1_netlink_msg *msg)
{
char buf[sizeof(struct cn_msg) + sizeof(struct w1_netlink_msg)];
Expand Down Expand Up @@ -230,8 +230,6 @@ void w1_fini_netlink(void)
cn_del_callback(&w1_id);
}
#else
#warning Netlink support is disabled. Please compile with NET support enabled.

void w1_netlink_send(struct w1_master *dev, struct w1_netlink_msg *msg)
{
}
Expand Down

0 comments on commit 2a1fb9e

Please sign in to comment.