Revert "nvmem: core: Fix msb clearing bits"

Revert to reduce upstream merge conflicts.

This reverts commit f54b298454.

Change-Id: Ic3ea0d784e2fd8beaa339561b0bed3d457eee047
This commit is contained in:
Michael Bestas
2022-11-22 03:10:55 +02:00
parent 1f5071128a
commit bf47f054fa

View File

@@ -900,8 +900,7 @@ static void nvmem_shift_read_buffer_in_place(struct nvmem_cell *cell, void *buf)
*p-- = 0; *p-- = 0;
/* clear msb bits if any leftover in the last byte */ /* clear msb bits if any leftover in the last byte */
if (cell->nbits%BITS_PER_BYTE) *p &= GENMASK((cell->nbits%BITS_PER_BYTE) - 1, 0);
*p &= GENMASK((cell->nbits%BITS_PER_BYTE) - 1, 0);
} }
static int __nvmem_cell_read(struct nvmem_device *nvmem, static int __nvmem_cell_read(struct nvmem_device *nvmem,