]> git.baikalelectronics.ru Git - kernel.git/commit
NFC: NFC core layer should not set the target_idx
authorIlan Elias <ilane@ti.com>
Wed, 18 Jan 2012 11:16:13 +0000 (13:16 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 24 Jan 2012 19:32:28 +0000 (14:32 -0500)
commit35f1435a2109742778b9cd6e773cd8c98ed9ce6c
treed717fdf49f8183899f8c98ce8860c5b1c4dceb2d
parentf8e591dfcd189733e9df28ea7f381635101ae958
NFC: NFC core layer should not set the target_idx

The NFC core layer should not set the target_idx.
Instead, the driver layer (e.g. NCI, PN533) should set the
target_idx, so that it will be able to identify the target
when its I/F (e.g. activate_target) is called.
This is required in order to support multiple targets.
Note that currently supported drivers (PN533 and NCI) don't
use the target_idx in their implementation.

Signed-off-by: Ilan Elias <ilane@ti.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/net/nfc/nfc.h
net/nfc/core.c
net/nfc/rawsock.c