staging: wfx: allow new PDS format
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Fri, 11 Feb 2022 16:26:58 +0000 (17:26 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Feb 2022 16:04:40 +0000 (17:04 +0100)
commitdcbecb497908a127dd9fd361d8cdc68f46d8cff6
tree3c8b06cc088a3f8b62f05a2463025fefdddab023
parent1e7f32f776089af32b6ec9b801fe976778c8448b
staging: wfx: allow new PDS format

The device needs data about the antenna configuration. This information
in provided by PDS (Platform Data Set, this is the wording used in WF200
documentation) files.

Until now, the driver had to parse the PDS file before to send it. This
solution was not acceptable for the vanilla kernel. We have slightly
changed the PDS format so it is now an array of Type-Length-Value.

This patch allows to support new format and keep compatibility with
legacy format.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
probe: allow new PDS format
Link: https://lore.kernel.org/r/20220211162659.528333-2-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wfx/main.c