mirror of
https://github.com/armbian/linux-cix.git
synced 2026-01-06 12:30:45 -08:00
lib/math: Move dvb_math.c into lib/math/int_log.c
Some existing and new users may benefit from the intlog2() and intlog10() APIs, make them wide available. Reviewed-by: Mauro Carvalho Chehab <mchehab@kernel.org> Acked-by: Mauro Carvalho Chehab <mchehab@kernel.org> Link: https://lore.kernel.org/r/20230619172019.21457-2-andriy.shevchenko@linux.intel.com Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Randy Dunlap <rdunlap@infradead.org> Link: https://lore.kernel.org/r/20230703135211.87416-2-andriy.shevchenko@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
committed by
Mark Brown
parent
3d74f42c56
commit
f97fa3dcb2
@@ -162,8 +162,11 @@ Base 2 log and power Functions
|
|||||||
.. kernel-doc:: include/linux/log2.h
|
.. kernel-doc:: include/linux/log2.h
|
||||||
:internal:
|
:internal:
|
||||||
|
|
||||||
Integer power Functions
|
Integer log and power Functions
|
||||||
-----------------------
|
-------------------------------
|
||||||
|
|
||||||
|
.. kernel-doc:: include/linux/int_log.h
|
||||||
|
:export:
|
||||||
|
|
||||||
.. kernel-doc:: lib/math/int_pow.c
|
.. kernel-doc:: lib/math/int_pow.c
|
||||||
:export:
|
:export:
|
||||||
|
|||||||
@@ -3,15 +3,6 @@
|
|||||||
Digital TV Common functions
|
Digital TV Common functions
|
||||||
---------------------------
|
---------------------------
|
||||||
|
|
||||||
Math functions
|
|
||||||
~~~~~~~~~~~~~~
|
|
||||||
|
|
||||||
Provide some commonly-used math functions, usually required in order to
|
|
||||||
estimate signal strength and signal to noise measurements in dB.
|
|
||||||
|
|
||||||
.. kernel-doc:: include/media/dvb_math.h
|
|
||||||
|
|
||||||
|
|
||||||
DVB devices
|
DVB devices
|
||||||
~~~~~~~~~~~
|
~~~~~~~~~~~
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,6 @@ dvb-vb2-$(CONFIG_DVB_MMAP) := dvb_vb2.o
|
|||||||
|
|
||||||
dvb-core-objs := dvbdev.o dmxdev.o dvb_demux.o \
|
dvb-core-objs := dvbdev.o dmxdev.o dvb_demux.o \
|
||||||
dvb_ca_en50221.o dvb_frontend.o \
|
dvb_ca_en50221.o dvb_frontend.o \
|
||||||
$(dvb-net-y) dvb_ringbuffer.o $(dvb-vb2-y) dvb_math.o
|
$(dvb-net-y) dvb_ringbuffer.o $(dvb-vb2-y)
|
||||||
|
|
||||||
obj-$(CONFIG_DVB_CORE) += dvb-core.o
|
obj-$(CONFIG_DVB_CORE) += dvb-core.o
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
#define AF9013_PRIV_H
|
#define AF9013_PRIV_H
|
||||||
|
|
||||||
#include <media/dvb_frontend.h>
|
#include <media/dvb_frontend.h>
|
||||||
#include <media/dvb_math.h>
|
#include <linux/int_log.h>
|
||||||
#include "af9013.h"
|
#include "af9013.h"
|
||||||
#include <linux/firmware.h>
|
#include <linux/firmware.h>
|
||||||
#include <linux/i2c-mux.h>
|
#include <linux/i2c-mux.h>
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
#include <linux/math64.h>
|
#include <linux/math64.h>
|
||||||
#include <linux/regmap.h>
|
#include <linux/regmap.h>
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
#include <media/dvb_math.h>
|
#include <linux/int_log.h>
|
||||||
|
|
||||||
struct reg_val {
|
struct reg_val {
|
||||||
u32 reg;
|
u32 reg;
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
#include <linux/dvb/version.h>
|
#include <linux/dvb/version.h>
|
||||||
#include <media/dvb_frontend.h>
|
#include <media/dvb_frontend.h>
|
||||||
#include <media/dvb_math.h>
|
#include <linux/int_log.h>
|
||||||
#include "cxd2820r.h"
|
#include "cxd2820r.h"
|
||||||
#include <linux/gpio/driver.h> /* For gpio_chip */
|
#include <linux/gpio/driver.h> /* For gpio_chip */
|
||||||
#include <linux/math64.h>
|
#include <linux/math64.h>
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
#include <linux/dynamic_debug.h>
|
#include <linux/dynamic_debug.h>
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
|
|
||||||
#include <media/dvb_math.h>
|
#include <linux/int_log.h>
|
||||||
#include <media/dvb_frontend.h>
|
#include <media/dvb_frontend.h>
|
||||||
#include "cxd2841er.h"
|
#include "cxd2841er.h"
|
||||||
#include "cxd2841er_priv.h"
|
#include "cxd2841er_priv.h"
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
#include "cxd2880_tnrdmd_dvbt2.h"
|
#include "cxd2880_tnrdmd_dvbt2.h"
|
||||||
#include "cxd2880_tnrdmd_dvbt2_mon.h"
|
#include "cxd2880_tnrdmd_dvbt2_mon.h"
|
||||||
|
|
||||||
#include <media/dvb_math.h>
|
#include <linux/int_log.h>
|
||||||
|
|
||||||
static const int ref_dbm_1000[4][8] = {
|
static const int ref_dbm_1000[4][8] = {
|
||||||
{-96000, -95000, -94000, -93000, -92000, -92000, -98000, -97000},
|
{-96000, -95000, -94000, -93000, -92000, -92000, -98000, -97000},
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
#include "cxd2880_tnrdmd_dvbt.h"
|
#include "cxd2880_tnrdmd_dvbt.h"
|
||||||
#include "cxd2880_tnrdmd_dvbt_mon.h"
|
#include "cxd2880_tnrdmd_dvbt_mon.h"
|
||||||
|
|
||||||
#include <media/dvb_math.h>
|
#include <linux/int_log.h>
|
||||||
|
|
||||||
static const int ref_dbm_1000[3][5] = {
|
static const int ref_dbm_1000[3][5] = {
|
||||||
{-93000, -91000, -90000, -89000, -88000},
|
{-93000, -91000, -90000, -89000, -88000},
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
#include <linux/spi/spi.h>
|
#include <linux/spi/spi.h>
|
||||||
|
|
||||||
#include <media/dvb_frontend.h>
|
#include <media/dvb_frontend.h>
|
||||||
#include <media/dvb_math.h>
|
#include <linux/int_log.h>
|
||||||
|
|
||||||
#include "cxd2880.h"
|
#include "cxd2880.h"
|
||||||
#include "cxd2880_tnrdmd_mon.h"
|
#include "cxd2880_tnrdmd_mon.h"
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
#include <linux/mutex.h>
|
#include <linux/mutex.h>
|
||||||
#include <asm/div64.h>
|
#include <asm/div64.h>
|
||||||
|
|
||||||
#include <media/dvb_math.h>
|
#include <linux/int_log.h>
|
||||||
#include <media/dvb_frontend.h>
|
#include <media/dvb_frontend.h>
|
||||||
|
|
||||||
#include "dib7000p.h"
|
#include "dib7000p.h"
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
#include <linux/mutex.h>
|
#include <linux/mutex.h>
|
||||||
#include <asm/div64.h>
|
#include <asm/div64.h>
|
||||||
|
|
||||||
#include <media/dvb_math.h>
|
#include <linux/int_log.h>
|
||||||
|
|
||||||
#include <media/dvb_frontend.h>
|
#include <media/dvb_frontend.h>
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
#include <linux/i2c.h>
|
#include <linux/i2c.h>
|
||||||
#include <linux/mutex.h>
|
#include <linux/mutex.h>
|
||||||
|
|
||||||
#include <media/dvb_math.h>
|
#include <linux/int_log.h>
|
||||||
#include <media/dvb_frontend.h>
|
#include <media/dvb_frontend.h>
|
||||||
|
|
||||||
#include "dib9000.h"
|
#include "dib9000.h"
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
#include <media/dvb_frontend.h>
|
#include <media/dvb_frontend.h>
|
||||||
#include "drxk.h"
|
#include "drxk.h"
|
||||||
#include "drxk_hard.h"
|
#include "drxk_hard.h"
|
||||||
#include <media/dvb_math.h>
|
#include <linux/int_log.h>
|
||||||
|
|
||||||
static int power_down_dvbt(struct drxk_state *state, bool set_power_mode);
|
static int power_down_dvbt(struct drxk_state *state, bool set_power_mode);
|
||||||
static int power_down_qam(struct drxk_state *state);
|
static int power_down_qam(struct drxk_state *state);
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
#include <asm/div64.h>
|
#include <asm/div64.h>
|
||||||
#include <linux/dvb/frontend.h>
|
#include <linux/dvb/frontend.h>
|
||||||
#include <linux/slab.h>
|
#include <linux/slab.h>
|
||||||
#include <media/dvb_math.h>
|
#include <linux/int_log.h>
|
||||||
#include "lgdt3305.h"
|
#include "lgdt3305.h"
|
||||||
|
|
||||||
static int debug;
|
static int debug;
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
#include <asm/div64.h>
|
#include <asm/div64.h>
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
#include <linux/dvb/frontend.h>
|
#include <linux/dvb/frontend.h>
|
||||||
#include <media/dvb_math.h>
|
#include <linux/int_log.h>
|
||||||
#include "lgdt3306a.h"
|
#include "lgdt3306a.h"
|
||||||
#include <linux/i2c-mux.h>
|
#include <linux/i2c-mux.h>
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
#include <asm/byteorder.h>
|
#include <asm/byteorder.h>
|
||||||
|
|
||||||
#include <media/dvb_frontend.h>
|
#include <media/dvb_frontend.h>
|
||||||
#include <media/dvb_math.h>
|
#include <linux/int_log.h>
|
||||||
#include "lgdt330x_priv.h"
|
#include "lgdt330x_priv.h"
|
||||||
#include "lgdt330x.h"
|
#include "lgdt330x.h"
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
#include <media/dvb_frontend.h>
|
#include <media/dvb_frontend.h>
|
||||||
#include "m88ds3103.h"
|
#include "m88ds3103.h"
|
||||||
#include <media/dvb_math.h>
|
#include <linux/int_log.h>
|
||||||
#include <linux/firmware.h>
|
#include <linux/firmware.h>
|
||||||
#include <linux/i2c-mux.h>
|
#include <linux/i2c-mux.h>
|
||||||
#include <linux/regmap.h>
|
#include <linux/regmap.h>
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
#include <linux/gpio/consumer.h>
|
#include <linux/gpio/consumer.h>
|
||||||
#include <linux/of_device.h>
|
#include <linux/of_device.h>
|
||||||
#include <linux/regmap.h>
|
#include <linux/regmap.h>
|
||||||
#include <media/dvb_math.h>
|
#include <linux/int_log.h>
|
||||||
|
|
||||||
#include "mn88443x.h"
|
#include "mn88443x.h"
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
#define MN88472_PRIV_H
|
#define MN88472_PRIV_H
|
||||||
|
|
||||||
#include <media/dvb_frontend.h>
|
#include <media/dvb_frontend.h>
|
||||||
#include <media/dvb_math.h>
|
#include <linux/int_log.h>
|
||||||
#include "mn88472.h"
|
#include "mn88472.h"
|
||||||
#include <linux/firmware.h>
|
#include <linux/firmware.h>
|
||||||
#include <linux/regmap.h>
|
#include <linux/regmap.h>
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user