Skip to content
Unverified Commit 5d785141 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

spi: fsl-lpspi: Clean up fsl_lpspi_probe



Use is_slave local variable to avoid calling of_property_read_bool() twice.
Remove redudant assignment for controller->bus_num, set it once is enough.
Move setting controller->bits_per_word_mask close to the code init other
controller fields.

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent a18656ea
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment