Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4621614d authored by Pelle Nilsson's avatar Pelle Nilsson Committed by Sasha Levin
Browse files

spi: bitbang: Make setup_transfer() callback optional



[ Upstream commit 7d0ec8b6f40b356f780b79de63eeafd6b907d68c ]

Some controller drivers have no need of this callback (spi-altera even
causes a NULL pointer dereference because it doesn't register the callback,
falsely assuming that it is already optional).

Fixes: 30af9b55 ("spi/bitbang: Drop empty setup() functions")
Signed-off-by: default avatarPelle Nilsson <per.nilsson@xelmo.com>
Reviewed-by: default avatarEzequiel Garcia <ezequiel.garcia@vanguardiasur.com.ar>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
parent 0fee5a39
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment