Commit 62042882 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

media: staging: hantro: avoid future namespace collisions



Rename:
	vp8_dec_mc_filter -> hantro_vp8_dec_mc_filter

As other drivers may end implementing something with the same
name.

So, prepend driver's name here, in order to make symbol namespace
cleaner.

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent 73fb5bfa
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -342,11 +342,12 @@ static void cfg_tap(struct hantro_ctx *ctx,
		return; /* Tap filter not used. */

	for (i = 0; i < 8; i++) {
		val = (vp8_dec_mc_filter[i][0] << 2) | vp8_dec_mc_filter[i][5];
		val = (hantro_vp8_dec_mc_filter[i][0] << 2) |
		       hantro_vp8_dec_mc_filter[i][5];

		for (j = 0; j < 4; j++)
			hantro_reg_write(vpu, &vp8_dec_pred_bc_tap[i][j],
					 vp8_dec_mc_filter[i][j + 1]);
					 hantro_vp8_dec_mc_filter[i][j + 1]);

		switch (i) {
		case 2:
+1 −1
Original line number Diff line number Diff line
@@ -95,7 +95,7 @@ extern const struct hantro_variant rk3399_vpu_variant;
extern const struct hantro_variant rk3328_vpu_variant;
extern const struct hantro_variant rk3288_vpu_variant;

extern const u32 vp8_dec_mc_filter[8][6];
extern const u32 hantro_vp8_dec_mc_filter[8][6];

void hantro_watchdog(struct work_struct *work);
void hantro_run(struct hantro_ctx *ctx);
+1 −1
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ struct vp8_prob_tbl_packed {
 * filter taps taken to 7-bit precision,
 * reference RFC6386#Page-16, filters[8][6]
 */
const u32 vp8_dec_mc_filter[8][6] = {
const u32 hantro_vp8_dec_mc_filter[8][6] = {
	{ 0, 0, 128, 0, 0, 0 },
	{ 0, -6, 123, 12, -1, 0 },
	{ 2, -11, 108, 36, -8, 1 },
+1 −1
Original line number Diff line number Diff line
@@ -439,7 +439,7 @@ static void cfg_tap(struct hantro_ctx *ctx,
			if (vp8_dec_pred_bc_tap[i][j].base != 0)
				hantro_reg_write(vpu,
						 &vp8_dec_pred_bc_tap[i][j],
						 vp8_dec_mc_filter[i][j]);
						 hantro_vp8_dec_mc_filter[i][j]);
		}
	}
}