From patchwork Mon Jun 6 17:15:19 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 852822 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p56HFS3E012489 for ; Mon, 6 Jun 2011 17:15:28 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756188Ab1FFRPW (ORCPT ); Mon, 6 Jun 2011 13:15:22 -0400 Received: from moutng.kundenserver.de ([212.227.17.8]:49355 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751695Ab1FFRPV (ORCPT ); Mon, 6 Jun 2011 13:15:21 -0400 Received: from axis700.grange (dslb-178-006-245-001.pools.arcor-ip.net [178.6.245.1]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0MHrNV-1QQ3QT1gtR-004KdC; Mon, 06 Jun 2011 19:15:20 +0200 Received: by axis700.grange (Postfix, from userid 1000) id 0AB11189B78; Mon, 6 Jun 2011 19:15:19 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by axis700.grange (Postfix) with ESMTP id F3822189B77 for ; Mon, 6 Jun 2011 19:15:19 +0200 (CEST) Date: Mon, 6 Jun 2011 19:15:19 +0200 (CEST) From: Guennadi Liakhovetski X-X-Sender: lyakh@axis700.grange To: Linux Media Mailing List Subject: [PATCH] V4L: sh_mobile_ceu_camera: remove redundant calculations Message-ID: MIME-Version: 1.0 X-Provags-ID: V02:K0:EzryTO2y6wjXiRriJRP+zvA9zcB/M0dXaLvsRF/W/h1 c/143XYE27tFAoxUfsroOYkRZN24cdvEzM7jfK5XkvQ2L17AB/ ZMoMlf3hjAh9/nEPVLvluSWtYAo98aojh3alHGkJ+QGQi7dgcS 1ZF5sypCvpY8ukx4HLVJMvTNGX/hE0FFm/TQkJ0SIa636AZQAd VDnOaDH1iNonEv1lw/PyhcoJ5NKsPzVsFJhHdxE5h4= Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Mon, 06 Jun 2011 17:15:28 +0000 (UTC) soc_camera core now performs the standard .bytesperline and .sizeimage calculations internally, no need to duplicate in drivers. Signed-off-by: Guennadi Liakhovetski --- drivers/media/video/sh_mobile_ceu_camera.c | 5 ----- 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/drivers/media/video/sh_mobile_ceu_camera.c b/drivers/media/video/sh_mobile_ceu_camera.c index 3ae5c9c..b08debc 100644 --- a/drivers/media/video/sh_mobile_ceu_camera.c +++ b/drivers/media/video/sh_mobile_ceu_camera.c @@ -1701,11 +1701,6 @@ static int sh_mobile_ceu_try_fmt(struct soc_camera_device *icd, width = pix->width; height = pix->height; - pix->bytesperline = soc_mbus_bytes_per_line(width, xlate->host_fmt); - if ((int)pix->bytesperline < 0) - return pix->bytesperline; - pix->sizeimage = height * pix->bytesperline; - /* limit to sensor capabilities */ mf.width = pix->width; mf.height = pix->height;