mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 11:03:43 +02:00
drm/amd/display: Remove unused NUM_ELEMENTS macros
Removes unused NUM_ELEMENTS macros. Discovered while removing cases where ARRAY_SIZE from the header <linus/array_size.h> can be used. This also aligns with the array_size.cocci coccinelle check. Suggested-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Linus Probert <linus.probert@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
2d23661764
commit
a097dd7059
|
|
@ -49,9 +49,6 @@
|
|||
#define FN(reg_name, field_name) \
|
||||
dpp->tf_shift->field_name, dpp->tf_mask->field_name
|
||||
|
||||
#define NUM_ELEMENTS(a) (sizeof(a) / sizeof((a)[0]))
|
||||
|
||||
|
||||
enum dcn10_coef_filter_type_sel {
|
||||
SCL_COEF_LUMA_VERT_FILTER = 0,
|
||||
SCL_COEF_LUMA_HORZ_FILTER = 1,
|
||||
|
|
|
|||
|
|
@ -49,9 +49,6 @@
|
|||
#define FN(reg_name, field_name) \
|
||||
dpp->tf_shift->field_name, dpp->tf_mask->field_name
|
||||
|
||||
#define NUM_ELEMENTS(a) (sizeof(a) / sizeof((a)[0]))
|
||||
|
||||
|
||||
enum dcn401_coef_filter_type_sel {
|
||||
SCL_COEF_LUMA_VERT_FILTER = 0,
|
||||
SCL_COEF_LUMA_HORZ_FILTER = 1,
|
||||
|
|
|
|||
|
|
@ -43,8 +43,6 @@
|
|||
#define FN(reg_name, field_name) \
|
||||
mpc20->mpc_shift->field_name, mpc20->mpc_mask->field_name
|
||||
|
||||
#define NUM_ELEMENTS(a) (sizeof(a) / sizeof((a)[0]))
|
||||
|
||||
void mpc2_update_blending(
|
||||
struct mpc *mpc,
|
||||
struct mpcc_blnd_cfg *blnd_cfg,
|
||||
|
|
|
|||
|
|
@ -40,10 +40,6 @@
|
|||
#define FN(reg_name, field_name) \
|
||||
mpc30->mpc_shift->field_name, mpc30->mpc_mask->field_name
|
||||
|
||||
|
||||
#define NUM_ELEMENTS(a) (sizeof(a) / sizeof((a)[0]))
|
||||
|
||||
|
||||
void mpc3_mpc_init(struct mpc *mpc)
|
||||
{
|
||||
struct dcn30_mpc *mpc30 = TO_DCN30_MPC(mpc);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user