i2c: i801: Add helper i801_get_block_len
authorHeiner Kallweit <hkallweit1@gmail.com>
Fri, 2 Feb 2024 07:06:30 +0000 (08:06 +0100)
committerAndi Shyti <andi.shyti@kernel.org>
Thu, 8 Feb 2024 17:07:03 +0000 (18:07 +0100)
commit857cc04cdf508d043a062fff3aea8ca01303b731
tree85649eaf1fe5dc19167e9f30e282d05fb3502d70
parent29dae4572efb676e4831eee68bc423b9f32c05d0
i2c: i801: Add helper i801_get_block_len

Avoid code duplication and factor out retrieving and checking the
block length value to new helper i801_get_block_len().

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/busses/i2c-i801.c
This page took 0.054404 seconds and 4 git commands to generate.