bus: mhi: Use bitfield operations for handling DWORDs of ring elements
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Tue, 1 Mar 2022 16:03:04 +0000 (21:33 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Mar 2022 13:02:54 +0000 (14:02 +0100)
commitba1d2b86b6a69e3bd7b8578faa5a325d9a91c2ef
tree6224050e25e945f83d1909d2501ff4473c6cd714
parentd28cab4d4aa06cdb203196cefcd31208a8ccd808
bus: mhi: Use bitfield operations for handling DWORDs of ring elements

Instead of using the hardcoded bits in DWORD definitions, let's use the
bitfield operations to make it more clear how the DWORDs are structured.

Suggested-by: Alex Elder <elder@linaro.org>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/20220301160308.107452-7-manivannan.sadhasivam@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/bus/mhi/host/internal.h