Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/eld: replace uint8_t with u8

Unify on kernel types.

Cc: Mitul Golani <mitulkumar.ajitkumar.golani@intel.com>
Reviewed-by: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
Reviewed-by: Mitul Golani <mitulkumar.ajitkumar.golani@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/6e048fc4c8a3ebec638ce27b0b8b969a3d2fa8bc.1698747331.git.jani.nikula@intel.com

+7 -7
+7 -7
include/drm/drm_eld.h
··· 70 70 * drm_eld_mnl - Get ELD monitor name length in bytes. 71 71 * @eld: pointer to an eld memory structure with mnl set 72 72 */ 73 - static inline int drm_eld_mnl(const uint8_t *eld) 73 + static inline int drm_eld_mnl(const u8 *eld) 74 74 { 75 75 return (eld[DRM_ELD_CEA_EDID_VER_MNL] & DRM_ELD_MNL_MASK) >> DRM_ELD_MNL_SHIFT; 76 76 } ··· 79 79 * drm_eld_sad - Get ELD SAD structures. 80 80 * @eld: pointer to an eld memory structure with sad_count set 81 81 */ 82 - static inline const uint8_t *drm_eld_sad(const uint8_t *eld) 82 + static inline const u8 *drm_eld_sad(const u8 *eld) 83 83 { 84 84 unsigned int ver, mnl; 85 85 ··· 98 98 * drm_eld_sad_count - Get ELD SAD count. 99 99 * @eld: pointer to an eld memory structure with sad_count set 100 100 */ 101 - static inline int drm_eld_sad_count(const uint8_t *eld) 101 + static inline int drm_eld_sad_count(const u8 *eld) 102 102 { 103 103 return (eld[DRM_ELD_SAD_COUNT_CONN_TYPE] & DRM_ELD_SAD_COUNT_MASK) >> 104 104 DRM_ELD_SAD_COUNT_SHIFT; ··· 111 111 * This is a helper for determining the payload size of the baseline block, in 112 112 * bytes, for e.g. setting the Baseline_ELD_Len field in the ELD header block. 113 113 */ 114 - static inline int drm_eld_calc_baseline_block_size(const uint8_t *eld) 114 + static inline int drm_eld_calc_baseline_block_size(const u8 *eld) 115 115 { 116 116 return DRM_ELD_MONITOR_NAME_STRING - DRM_ELD_HEADER_BLOCK_SIZE + 117 117 drm_eld_mnl(eld) + drm_eld_sad_count(eld) * 3; ··· 127 127 * 128 128 * The returned value is guaranteed to be a multiple of 4. 129 129 */ 130 - static inline int drm_eld_size(const uint8_t *eld) 130 + static inline int drm_eld_size(const u8 *eld) 131 131 { 132 132 return DRM_ELD_HEADER_BLOCK_SIZE + eld[DRM_ELD_BASELINE_ELD_LEN] * 4; 133 133 } ··· 139 139 * The returned value is the speakers mask. User has to use %DRM_ELD_SPEAKER 140 140 * field definitions to identify speakers. 141 141 */ 142 - static inline u8 drm_eld_get_spk_alloc(const uint8_t *eld) 142 + static inline u8 drm_eld_get_spk_alloc(const u8 *eld) 143 143 { 144 144 return eld[DRM_ELD_SPEAKER] & DRM_ELD_SPEAKER_MASK; 145 145 } ··· 151 151 * The caller need to use %DRM_ELD_CONN_TYPE_HDMI or %DRM_ELD_CONN_TYPE_DP to 152 152 * identify the display type connected. 153 153 */ 154 - static inline u8 drm_eld_get_conn_type(const uint8_t *eld) 154 + static inline u8 drm_eld_get_conn_type(const u8 *eld) 155 155 { 156 156 return eld[DRM_ELD_SAD_COUNT_CONN_TYPE] & DRM_ELD_CONN_TYPE_MASK; 157 157 }