Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

NFC: Document NFC targets sens_res field

SENS_RES has no specific endiannes attached to it, the kernel ABI is the
following one: Byte 2 (As described by the NFC Forum Digital spec) is
the u16 most significant byte.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>

+8
+8
include/net/nfc/nfc.h
··· 85 85 #define NFC_MAX_GT_LEN 48 86 86 #define NFC_ATR_RES_GT_OFFSET 15 87 87 88 + /** 89 + * struct nfc_target - NFC target descriptiom 90 + * 91 + * @sens_res: 2 bytes describing the target SENS_RES response, if the target 92 + * is a type A one. The %sens_res most significant byte must be byte 2 93 + * as described by the NFC Forum digital specification (i.e. the platform 94 + * configuration one) while %sens_res least significant byte is byte 1. 95 + */ 88 96 struct nfc_target { 89 97 u32 idx; 90 98 u32 supported_protocols;