Unverified Commit 441511ae authored by Mark Brown's avatar Mark Brown
Browse files

ASoC: remove copy of intlog10()

Merge series from Andy Shevchenko <andriy.shevchenko@linux.intel.com>:

The first three patches moves intlog10() to be available in entire
kernel. The last one removes copy of it in one driver. Besides already
good Lines of Code (LoC) statistics the upcoming users, if any, can
utilize the exported functions.

The series can be routed via ASoC tree (as Mauro suggested).

Note, int_log.h is separated from math.h due to licensing.
I dunno if we can mix two in a single header file. In any
case we may do it later on.
parents b8c442b3 a0461632
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -162,8 +162,11 @@ Base 2 log and power Functions
.. kernel-doc:: include/linux/log2.h
   :internal:

Integer power Functions
-----------------------
Integer log and power Functions
-------------------------------

.. kernel-doc:: include/linux/int_log.h
   :export:

.. kernel-doc:: lib/math/int_pow.c
   :export:
+0 −9
Original line number Diff line number Diff line
@@ -3,15 +3,6 @@
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
~~~~~~~~~~~

+1 −1
Original line number Diff line number Diff line
@@ -8,6 +8,6 @@ dvb-vb2-$(CONFIG_DVB_MMAP) := dvb_vb2.o

dvb-core-objs := dvbdev.o dmxdev.o dvb_demux.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
+1 −1
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@
#define AF9013_PRIV_H

#include <media/dvb_frontend.h>
#include <media/dvb_math.h>
#include <linux/int_log.h>
#include "af9013.h"
#include <linux/firmware.h>
#include <linux/i2c-mux.h>
+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@
#include <linux/math64.h>
#include <linux/regmap.h>
#include <linux/kernel.h>
#include <media/dvb_math.h>
#include <linux/int_log.h>

struct reg_val {
	u32 reg;
Loading