From patchwork Wed Dec 24 11:36:00 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ismael Luceno X-Patchwork-Id: 5538841 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 711EB9F1CD for ; Wed, 24 Dec 2014 11:37:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B81ED201E4 for ; Wed, 24 Dec 2014 11:37:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E1DF6201D3 for ; Wed, 24 Dec 2014 11:37:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751441AbaLXLha (ORCPT ); Wed, 24 Dec 2014 06:37:30 -0500 Received: from mail-yh0-f54.google.com ([209.85.213.54]:42736 "EHLO mail-yh0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751165AbaLXLh3 (ORCPT ); Wed, 24 Dec 2014 06:37:29 -0500 Received: by mail-yh0-f54.google.com with SMTP id 29so4268101yhl.13 for ; Wed, 24 Dec 2014 03:37:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=sNL/6snHSp4CqV9KbSkgRpTiFesC73Nty9j5+77NCc4=; b=CBfZjMKDPWKLfX7h4KbjFYHdblGpJFOLlKbJ12TnAPZWfPKAqUKwBbItBxyzmA8Mji ShrXcbFCtxYNcZ4kzSmh7Na5kmaMXQjGXmbi0U7Hvm+Ket++WzRtmPr904ulJSmjm2vM 9wuvv1i3CGPlm7y4rxY8peuM7ii83D/ETaNrpDHEAlNahYNvqIf4z1zH6B75IIn/4qqW HACjVxlXW+msaft6ekjZQpXR+pBhomS0XYyL5gqAK6TJpPt7JvR9S9mEAHGgfrT8X91B hWBQbgiU3ydBj6GwyITmQ03WAqUcnQP25mPNpszr53XNTr+Epr1fRt3FqH7zk14zWd79 kVMw== X-Received: by 10.236.26.137 with SMTP id c9mr25540818yha.7.1419421048861; Wed, 24 Dec 2014 03:37:28 -0800 (PST) Received: from localhost (host153.190-226-218.telecom.net.ar. [190.226.218.153]) by mx.google.com with ESMTPSA id d79sm4037050yha.24.2014.12.24.03.37.27 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Dec 2014 03:37:28 -0800 (PST) From: Ismael Luceno To: linux-media@vger.kernel.org Cc: Hans Verkuil , Andrey Utkin , Ismael Luceno Subject: [PATCH 2/3] solo6x10: Fix eeprom_* functions buffer's type Date: Wed, 24 Dec 2014 08:36:00 -0300 Message-Id: <1419420961-7819-2-git-send-email-ismael@iodev.co.uk> X-Mailer: git-send-email 2.2.0 In-Reply-To: <1419420961-7819-1-git-send-email-ismael@iodev.co.uk> References: <1419420961-7819-1-git-send-email-ismael@iodev.co.uk> 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_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=unavailable 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 Signed-off-by: Ismael Luceno --- drivers/media/pci/solo6x10/solo6x10-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/pci/solo6x10/solo6x10-core.c b/drivers/media/pci/solo6x10/solo6x10-core.c index 8cbe6b4..570d119 100644 --- a/drivers/media/pci/solo6x10/solo6x10-core.c +++ b/drivers/media/pci/solo6x10/solo6x10-core.c @@ -182,7 +182,7 @@ static ssize_t eeprom_store(struct device *dev, struct device_attribute *attr, { struct solo_dev *solo_dev = container_of(dev, struct solo_dev, dev); - unsigned short *p = (unsigned short *)buf; + u16 *p = (u16 *)buf; int i; if (count & 0x1) @@ -212,7 +212,7 @@ static ssize_t eeprom_show(struct device *dev, struct device_attribute *attr, { struct solo_dev *solo_dev = container_of(dev, struct solo_dev, dev); - unsigned short *p = (unsigned short *)buf; + u16 *p = (u16 *)buf; int count = (full_eeprom ? 128 : 64); int i;