From patchwork Thu Sep 5 16:14:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: zhong jiang X-Patchwork-Id: 11133611 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 65FB613BD for ; Thu, 5 Sep 2019 16:19:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D12FC20870 for ; Thu, 5 Sep 2019 16:19:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732831AbfIEQTt (ORCPT ); Thu, 5 Sep 2019 12:19:49 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:6687 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1733030AbfIEQSH (ORCPT ); Thu, 5 Sep 2019 12:18:07 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id BFCCC1B9BB529B7BE769; Fri, 6 Sep 2019 00:18:00 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.439.0; Fri, 6 Sep 2019 00:18:36 +0800 From: zhong jiang To: CC: , , , , Subject: [PATCH 0/4] media: Use DIV_ROUND_CLOSEST directly Date: Fri, 6 Sep 2019 00:14:48 +0800 Message-ID: <1567700092-27769-1-git-send-email-zhongjiang@huawei.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org With the following help of Coccinelle. I find out some place can be replaced. -(((x) + ((__divisor) / 2)) / (__divisor)) + DIV_ROUND_CLOSEST(x,__divisor) 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 | 2 +- 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, 5 insertions(+), 5 deletions(-)