[merged] media-cxd2820r-use-div_round_closest_ull.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: media: cxd2820r: use DIV_ROUND_CLOSEST_ULL()
has been removed from the -mm tree.  Its filename was
     media-cxd2820r-use-div_round_closest_ull.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Javi Merino <javi.merino@xxxxxxx>
Subject: media: cxd2820r: use DIV_ROUND_CLOSEST_ULL()

Now that the kernel provides DIV_ROUND_CLOSEST_ULL(), drop the internal
implementation and use the kernel one.

Signed-off-by: Javi Merino <javi.merino@xxxxxxx>
Cc: Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxxxx>
Acked-by: Antti Palosaari <crope@xxxxxx>
Reviewed-by: Antti Palosaari <crope@xxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 drivers/media/dvb-frontends/cxd2820r_c.c    |    2 +-
 drivers/media/dvb-frontends/cxd2820r_core.c |    6 ------
 drivers/media/dvb-frontends/cxd2820r_priv.h |    2 --
 drivers/media/dvb-frontends/cxd2820r_t.c    |    2 +-
 drivers/media/dvb-frontends/cxd2820r_t2.c   |    2 +-
 5 files changed, 3 insertions(+), 11 deletions(-)

diff -puN drivers/media/dvb-frontends/cxd2820r_c.c~media-cxd2820r-use-div_round_closest_ull drivers/media/dvb-frontends/cxd2820r_c.c
--- a/drivers/media/dvb-frontends/cxd2820r_c.c~media-cxd2820r-use-div_round_closest_ull
+++ a/drivers/media/dvb-frontends/cxd2820r_c.c
@@ -79,7 +79,7 @@ int cxd2820r_set_frontend_c(struct dvb_f
 
 	num = if_freq / 1000; /* Hz => kHz */
 	num *= 0x4000;
-	if_ctl = 0x4000 - cxd2820r_div_u64_round_closest(num, 41000);
+	if_ctl = 0x4000 - DIV_ROUND_CLOSEST_ULL(num, 41000);
 	buf[0] = (if_ctl >> 8) & 0x3f;
 	buf[1] = (if_ctl >> 0) & 0xff;
 
diff -puN drivers/media/dvb-frontends/cxd2820r_core.c~media-cxd2820r-use-div_round_closest_ull drivers/media/dvb-frontends/cxd2820r_core.c
--- a/drivers/media/dvb-frontends/cxd2820r_core.c~media-cxd2820r-use-div_round_closest_ull
+++ a/drivers/media/dvb-frontends/cxd2820r_core.c
@@ -244,12 +244,6 @@ error:
 	return ret;
 }
 
-/* 64 bit div with round closest, like DIV_ROUND_CLOSEST but 64 bit */
-u32 cxd2820r_div_u64_round_closest(u64 dividend, u32 divisor)
-{
-	return div_u64(dividend + (divisor / 2), divisor);
-}
-
 static int cxd2820r_set_frontend(struct dvb_frontend *fe)
 {
 	struct cxd2820r_priv *priv = fe->demodulator_priv;
diff -puN drivers/media/dvb-frontends/cxd2820r_priv.h~media-cxd2820r-use-div_round_closest_ull drivers/media/dvb-frontends/cxd2820r_priv.h
--- a/drivers/media/dvb-frontends/cxd2820r_priv.h~media-cxd2820r-use-div_round_closest_ull
+++ a/drivers/media/dvb-frontends/cxd2820r_priv.h
@@ -64,8 +64,6 @@ int cxd2820r_wr_reg_mask(struct cxd2820r
 int cxd2820r_wr_regs(struct cxd2820r_priv *priv, u32 reginfo, u8 *val,
 	int len);
 
-u32 cxd2820r_div_u64_round_closest(u64 dividend, u32 divisor);
-
 int cxd2820r_wr_regs(struct cxd2820r_priv *priv, u32 reginfo, u8 *val,
 	int len);
 
diff -puN drivers/media/dvb-frontends/cxd2820r_t.c~media-cxd2820r-use-div_round_closest_ull drivers/media/dvb-frontends/cxd2820r_t.c
--- a/drivers/media/dvb-frontends/cxd2820r_t.c~media-cxd2820r-use-div_round_closest_ull
+++ a/drivers/media/dvb-frontends/cxd2820r_t.c
@@ -103,7 +103,7 @@ int cxd2820r_set_frontend_t(struct dvb_f
 
 	num = if_freq / 1000; /* Hz => kHz */
 	num *= 0x1000000;
-	if_ctl = cxd2820r_div_u64_round_closest(num, 41000);
+	if_ctl = DIV_ROUND_CLOSEST_ULL(num, 41000);
 	buf[0] = ((if_ctl >> 16) & 0xff);
 	buf[1] = ((if_ctl >>  8) & 0xff);
 	buf[2] = ((if_ctl >>  0) & 0xff);
diff -puN drivers/media/dvb-frontends/cxd2820r_t2.c~media-cxd2820r-use-div_round_closest_ull drivers/media/dvb-frontends/cxd2820r_t2.c
--- a/drivers/media/dvb-frontends/cxd2820r_t2.c~media-cxd2820r-use-div_round_closest_ull
+++ a/drivers/media/dvb-frontends/cxd2820r_t2.c
@@ -120,7 +120,7 @@ int cxd2820r_set_frontend_t2(struct dvb_
 
 	num = if_freq / 1000; /* Hz => kHz */
 	num *= 0x1000000;
-	if_ctl = cxd2820r_div_u64_round_closest(num, 41000);
+	if_ctl = DIV_ROUND_CLOSEST_ULL(num, 41000);
 	buf[0] = ((if_ctl >> 16) & 0xff);
 	buf[1] = ((if_ctl >>  8) & 0xff);
 	buf[2] = ((if_ctl >>  0) & 0xff);
_

Patches currently in -mm which might be from javi.merino@xxxxxxx are

origin.patch
linux-next.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux