From patchwork Fri Jul 25 17:48:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Frank_Sch=C3=A4fer?= X-Patchwork-Id: 4625111 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 74C8EC0338 for ; Fri, 25 Jul 2014 17:48:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AB24D20136 for ; Fri, 25 Jul 2014 17:48:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E141B20123 for ; Fri, 25 Jul 2014 17:48:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935021AbaGYRsJ (ORCPT ); Fri, 25 Jul 2014 13:48:09 -0400 Received: from mail-we0-f172.google.com ([74.125.82.172]:48102 "EHLO mail-we0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935059AbaGYRsH (ORCPT ); Fri, 25 Jul 2014 13:48:07 -0400 Received: by mail-we0-f172.google.com with SMTP id x48so4604448wes.17 for ; Fri, 25 Jul 2014 10:48:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=FS7C9Xl2xYNPvDPDiKcnO1EemVxLpBHoZtOZ4cxiHs8=; b=bdGK5K+J/87nGAh26nQ/YwyP+ihDzGlB4RHqPMZCRxYVtHaULUwwM0JME7KhlZ/lW5 hZgXphoyEWEfEQvvp2YySrr9T9uSOZh2UveWSPsy/KAJAOpR3QRIhun0V1Y1Ta+FKbKp gGM/oehAG0sDpWwnhmX6zOq/kD3M02ZU3D9je+Ps/hBRcQxjy2ZVHK5OWm8UPU285/1/ sFT/xbGauqOFtRAhM43e5TmuR6HkgXGTXD1ql1PlrdE3goS1uzCBb+q27oHhM/hWaHku 29Wt8pcaHKUeJeWX/uzTWpY4wTQjGu8hHNeracVQDNF5PWi/tEysGhVzZSrdw9Xsk2nK 4/Mw== X-Received: by 10.180.93.196 with SMTP id cw4mr7012287wib.69.1406310486009; Fri, 25 Jul 2014 10:48:06 -0700 (PDT) Received: from Athlon64X2-5000.lan (ip-178-201-166-251.hsi08.unitymediagroup.de. [178.201.166.251]) by mx.google.com with ESMTPSA id w5sm8480640wif.3.2014.07.25.10.48.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Jul 2014 10:48:05 -0700 (PDT) From: =?UTF-8?q?Frank=20Sch=C3=A4fer?= To: m.chehab@samsung.com Cc: hverkuil@xs4all.nl, linux-media@vger.kernel.org, =?UTF-8?q?Frank=20Sch=C3=A4fer?= Subject: [PATCH 1/4] em28xx-v4l: simplify some pointers in em28xx_init_camera() Date: Fri, 25 Jul 2014 19:48:55 +0200 Message-Id: <1406310538-5001-2-git-send-email-fschaefer.oss@googlemail.com> X-Mailer: git-send-email 1.8.4.5 In-Reply-To: <1406310538-5001-1-git-send-email-fschaefer.oss@googlemail.com> References: <1406310538-5001-1-git-send-email-fschaefer.oss@googlemail.com> MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Pointer v4l2" can be used instead of "dev->v4l2, which saves some characters. Signed-off-by: Frank Schäfer --- drivers/media/usb/em28xx/em28xx-camera.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/usb/em28xx/em28xx-camera.c b/drivers/media/usb/em28xx/em28xx-camera.c index 12d4c03..6d2ea9a 100644 --- a/drivers/media/usb/em28xx/em28xx-camera.c +++ b/drivers/media/usb/em28xx/em28xx-camera.c @@ -366,7 +366,7 @@ int em28xx_init_camera(struct em28xx *dev) v4l2->sensor_xtal = 4300000; pdata.xtal = v4l2->sensor_xtal; if (NULL == - v4l2_i2c_new_subdev_board(&dev->v4l2->v4l2_dev, adap, + v4l2_i2c_new_subdev_board(&v4l2->v4l2_dev, adap, &mt9v011_info, NULL)) { ret = -ENODEV; break; @@ -423,7 +423,7 @@ int em28xx_init_camera(struct em28xx *dev) v4l2->sensor_yres = 480; subdev = - v4l2_i2c_new_subdev_board(&dev->v4l2->v4l2_dev, adap, + v4l2_i2c_new_subdev_board(&v4l2->v4l2_dev, adap, &ov2640_info, NULL); if (NULL == subdev) { ret = -ENODEV;