Re: [PATCH v3 06/25] bus: mhi: Cleanup the register definitions used in headers

From: Hemant Kumar
Date: Mon Feb 14 2022 - 19:37:22 EST




On 2/12/2022 10:20 AM, Manivannan Sadhasivam wrote:
Cleanup includes:

1. Moving the MHI register definitions to common.h header with REG_ prefix
and using them in the host/internal.h file as an alias. This makes it
possible to reuse the register definitions in EP stack that differs by
a fixed offset.
2. Using the GENMASK macro for masks
3. Removing brackets for single values
4. Using lowercase for hex values
5. Using two digits for hex values where applicable

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@xxxxxxxxxx>
---

Reviewed-by: Hemant Kumar <hemantk@xxxxxxxxxxxxxx>

--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project