android_kernel_xiaomi_sm8350/drivers/w1
Evgeniy Polyakov a2a6c74d34 w1: decrement slave counter only in ->release() callback
Decrement the slave counter only in ->release() callback instead of both
in ->release() and w1 control.

Patch is based on debug work and preliminary patch made by Henri Laakso.
Henri noticed in debug that this counter becomes negative after w1 slave
device is physically removed.

Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Cc: Henri Laakso <henri.laakso@wapice.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-01-14 08:52:22 -08:00
..
masters W1: fix memset size error 2007-11-14 18:45:36 -08:00
slaves some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
Kconfig Kbuild/doc: fix links to Documentation files 2007-10-30 14:26:30 -07:00
Makefile
w1_family.c
w1_family.h [BATTERY] ds2760 W1 slave 2007-07-10 11:28:31 +01:00
w1_int.c w1: fix w1_remove_master_device() searching 2007-08-22 19:52:46 -07:00
w1_int.h
w1_io.c
w1_log.h
w1_netlink.c
w1_netlink.h
w1.c w1: decrement slave counter only in ->release() callback 2008-01-14 08:52:22 -08:00
w1.h