media: dvb-frontends/stid135: Minor fixes.

This commit is contained in:
CrazyCat
2023-09-22 22:39:29 +03:00
parent 0a3fbba551
commit d10cc89536
2 changed files with 5 additions and 2 deletions

View File

@@ -46,6 +46,7 @@
#include <linux/kernel.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/mm.h>
#define WAIT_N_MS(X) msleep(X)
#define calloc(n,s) kvzalloc(n*s,GFP_KERNEL)

View File

@@ -3456,7 +3456,7 @@ fe_lla_error_t fe_stid135_init (struct fe_sat_init_params *pInit,
/* Internal params structure allocation */
#ifdef HOST_PC
STCHIP_Info_t DemodChip;
pParams = kvzalloc(sizeof(struct fe_stid135_internal_param), GFP_KERNEL);
pParams = calloc(sizeof(struct fe_stid135_internal_param),1);
(*handle) = (fe_stid135_handle_t) pParams;
#endif
@@ -4798,7 +4798,7 @@ fe_lla_error_t FE_STiD135_Term(fe_stid135_handle_t Handle)
ChipClose(pParams->handle_soc);
if(Handle)
kvfree(pParams);
free(pParams);
#endif
} else
@@ -11638,6 +11638,8 @@ fe_lla_error_t get_current_llr(fe_stid135_handle_t handle,enum fe_stid135_demod
case FE_SAT_MOD_1024APSK:
*current_llr *= 10;
break;
default:
*current_llr *= 3;
}
if(*current_llr != 0)