Skip to content
This repository has been archived by the owner on Nov 14, 2021. It is now read-only.

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 <franciscofranco.1990@gmail.com>
Signed-off-by: Adam W. Willis <return.of.octobot@gmail.com>
  • Loading branch information
franciscofranco authored and 0ctobot committed Sep 3, 2021
1 parent ac4ffdc commit 7b72b19
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions techpack/display/msm/sde/sde_hw_color_proc_v4.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,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 7b72b19

Please sign in to comment.