diff options
author | 2023-12-18 10:02:28 -0500 | |
---|---|---|
committer | 2023-12-20 09:25:25 +0100 | |
commit | 75f0c1c78d709f258004562a540c83bc05bfb962 (patch) | |
tree | 53a58292c4e1bc319ed4c257e570d89a95830f87 /lib/dump_stack.c | |
parent | w1: ds2433: remove unused definitions (diff) | |
download | wireguard-linux-75f0c1c78d709f258004562a540c83bc05bfb962.tar.xz wireguard-linux-75f0c1c78d709f258004562a540c83bc05bfb962.zip |
w1: ds2433: introduce a configuration structure
Add a ds2433_config structure for parameters that are different
between the ds2433 and the ds28ec20. The goal is to reuse the same
code for both chips.
A pointer to this config structure is added to w1_f23_data and the
CONFIG_W1_SLAVE_DS2433_CRC ifdefs are adjusted since now both driver
configurations (with or without crc support) will make use of
w1_f23_data.
Also, the 'memory' buffer is now dynamically allocated based on the
size specififed in the config structure to help support memories of
different sizes.
Signed-off-by: Marc Ferland <marc.ferland@sonatest.com>
Link: https://lore.kernel.org/r/20231218150230.1992448-4-marc.ferland@sonatest.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Diffstat (limited to 'lib/dump_stack.c')
0 files changed, 0 insertions, 0 deletions