linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: zhong jiang <zhongjiang@huawei.com>
To: <mchehab@kernel.org>, <sean@mess.org>, <hansverk@cisco.com>,
	<daniel.vetter@ffwll.ch>
Cc: <linux-media@vger.kernel.org>, <zhongjiang@huawei.com>,
	<linux-kernel@vger.kernel.org>
Subject: [PATCH v2 0/4] media: Use DIV_ROUND_CLOSEST directly
Date: Wed, 9 Oct 2019 22:55:21 +0800	[thread overview]
Message-ID: <1570632925-14926-1-git-send-email-zhongjiang@huawei.com> (raw)

With the help of Coccinelle. I find some place that DIV_ROUND_CLOSEST
can replace it directly.

v1->v2:
   patch 1: remove mt312_div() to use the DIV_ROUND_CLOSEST directly.

zhong jiang (4):
  media: dvb-frontends: Use DIV_ROUND_CLOSEST directly to make it
    readable
  media: tuners/qm1d1c0042: Use DIV_ROUND_CLOSEST directly to make it
    readable
  media: uvcvideo: Use DIV_ROUND_CLOSEST directly to make it readable
  media: v4l2-dv-timings: Use DIV_ROUND_CLOSEST directly to make it
    readable

 drivers/media/dvb-frontends/mt312.c       | 14 +++++---------
 drivers/media/tuners/qm1d1c0042.c         |  2 +-
 drivers/media/usb/uvc/uvc_ctrl.c          |  4 ++--
 drivers/media/v4l2-core/v4l2-dv-timings.c |  2 +-
 4 files changed, 9 insertions(+), 13 deletions(-)

-- 
1.7.12.4


             reply	other threads:[~2019-10-09 14:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-09 14:55 zhong jiang [this message]
2019-10-09 14:55 ` [PATCH v2 1/4] media: dvb-frontends: Use DIV_ROUND_CLOSEST directly to make it readable zhong jiang
2019-10-09 14:55 ` [PATCH v2 2/4] media: tuners/qm1d1c0042: " zhong jiang
2019-10-09 14:55 ` [PATCH v2 3/4] media: uvcvideo: " zhong jiang
2019-10-09 14:55 ` [PATCH v2 4/4] media: v4l2-dv-timings: " zhong jiang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1570632925-14926-1-git-send-email-zhongjiang@huawei.com \
    --to=zhongjiang@huawei.com \
    --cc=daniel.vetter@ffwll.ch \
    --cc=hansverk@cisco.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=sean@mess.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).