Skip to content

Commit

Permalink
drm: msm: kcal: make the userspace module param vars static and use s…
Browse files Browse the repository at this point in the history
…hort instead of integers

Same reasoning as franciscofranco/enchilada@20461e4

There's no point in using integers where a short is big enough.

Signed-off-by: Francisco Franco <[email protected]>
Signed-off-by: Nathan Chancellor <[email protected]>
  • Loading branch information
franciscofranco authored and desaishivam26 committed Jun 3, 2020
1 parent a736517 commit 24328d3
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions drivers/gpu/drm/msm/sde/sde_hw_color_proc_v4.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,21 @@
#include "sde_hw_color_proc_common_v4.h"
#include "sde_hw_color_proc_v4.h"

unsigned int kcal_red = 256;
unsigned int kcal_green = 256;
unsigned int kcal_blue = 256;
unsigned int kcal_hue = 0;
unsigned int kcal_sat = 255;
unsigned int kcal_val = 255;
unsigned int kcal_cont = 255;

module_param(kcal_red, uint, 0644);
module_param(kcal_green, uint, 0644);
module_param(kcal_blue, uint, 0644);
module_param(kcal_hue, uint, 0644);
module_param(kcal_sat, uint, 0644);
module_param(kcal_val, uint, 0644);
module_param(kcal_cont, uint, 0644);
static unsigned short kcal_red = 256;
static unsigned short kcal_green = 256;
static unsigned short kcal_blue = 256;
static unsigned short kcal_hue = 0;
static unsigned short kcal_sat = 255;
static unsigned short kcal_val = 255;
static unsigned short kcal_cont = 255;

module_param(kcal_red, short, 0644);
module_param(kcal_green, short, 0644);
module_param(kcal_blue, short, 0644);
module_param(kcal_hue, short, 0644);
module_param(kcal_sat, short, 0644);
module_param(kcal_val, short, 0644);
module_param(kcal_cont, short, 0644);

static int sde_write_3d_gamut(struct sde_hw_blk_reg_map *hw,
struct drm_msm_3d_gamut *payload, u32 base,
Expand Down

0 comments on commit 24328d3

Please sign in to comment.