mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 07:00:48 +00:00
media: cx25840: drop some unused inline functions
Solve some clang warnings about unused functions by dropping some time-conversion inline funcs that aren't used anywhere. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
ea28f3f1d2
commit
0338d9c2ff
@ -136,19 +136,6 @@ static inline u16 count_to_clock_divider(unsigned int d)
|
||||
return (u16) d;
|
||||
}
|
||||
|
||||
static inline u16 ns_to_clock_divider(unsigned int ns)
|
||||
{
|
||||
return count_to_clock_divider(
|
||||
DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ / 1000000 * ns, 1000));
|
||||
}
|
||||
|
||||
static inline unsigned int clock_divider_to_ns(unsigned int divider)
|
||||
{
|
||||
/* Period of the Rx or Tx clock in ns */
|
||||
return DIV_ROUND_CLOSEST((divider + 1) * 1000,
|
||||
CX25840_IR_REFCLK_FREQ / 1000000);
|
||||
}
|
||||
|
||||
static inline u16 carrier_freq_to_clock_divider(unsigned int freq)
|
||||
{
|
||||
return count_to_clock_divider(
|
||||
@ -160,13 +147,6 @@ static inline unsigned int clock_divider_to_carrier_freq(unsigned int divider)
|
||||
return DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ, (divider + 1) * 16);
|
||||
}
|
||||
|
||||
static inline u16 freq_to_clock_divider(unsigned int freq,
|
||||
unsigned int rollovers)
|
||||
{
|
||||
return count_to_clock_divider(
|
||||
DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ, freq * rollovers));
|
||||
}
|
||||
|
||||
static inline unsigned int clock_divider_to_freq(unsigned int divider,
|
||||
unsigned int rollovers)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user