From patchwork Sun May 29 21:53:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 68802 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp1113370qge; Sun, 29 May 2016 14:55:32 -0700 (PDT) X-Received: by 10.98.200.215 with SMTP id i84mr5451547pfk.28.1464558932017; Sun, 29 May 2016 14:55:32 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u7si31746355pfi.150.2016.05.29.14.55.31; Sun, 29 May 2016 14:55:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932653AbcE2Vy0 (ORCPT + 30 others); Sun, 29 May 2016 17:54:26 -0400 Received: from mail-wm0-f49.google.com ([74.125.82.49]:37308 "EHLO mail-wm0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753258AbcE2VyQ (ORCPT ); Sun, 29 May 2016 17:54:16 -0400 Received: by mail-wm0-f49.google.com with SMTP id z87so50831235wmh.0 for ; Sun, 29 May 2016 14:54:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Yh/94AJdZAUFVQiF1JyGojxtVLIrBLNUPrZyHaIYymA=; b=j1Hk3lE7e0UIZ9gRYytv8VD7AVM0QSLIixxmToikDLLQtmAacuImsruN1qmZRgjGzr wbufp6CudYCzAPkpzVF0cIVoZR3UExQq0xcZFbZGdC8TTpqugFH/H1RhduuoV425RDUa Bdl/zBE7BzizkWLNUkoQzOSlib9p2XUzkH4lj3e3twG9JHRmtXA8yIcTOsgkbYBQFmd6 VAEp/dC7ISt25DDxOFdMrR6Ia18EyBTT5Byg20zKlfEpwGsk16OKTe66GxnqPyQrC/9S 4vnTaZNqWfEhlFDo0vfYI3Fqbrp5PMjEaR0lQ9LX0q4cKRlCISQTQNDbW0KwhX3s7/bU SQ3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Yh/94AJdZAUFVQiF1JyGojxtVLIrBLNUPrZyHaIYymA=; b=DKJ0rKMUnghTHP+gcS3dAeYJZRyuob61ffZVlnDNfHpfLyGNERconadGtfY0uDNn9y lNskfutIaVKKEDbvkvsXBCS1IhL9XMi7JAYDpea3gvEr71jKsfLgg6r89TSFOHSLU31l HqjqZufOrIo4HmN3aWBFzqTMMG5TODcGSTQFxWa0QkXdR5ZBkPwWIo6bmq/RueOmP4VQ zsnaHnfulR8V0ESu9+uw4pjnPwXoH7F1p74AZMytsKEuaAxCs0jbqMieGUcgtTUH7g6R eyD6theQOBUGP0DthE9CWCvngbV4uLcNdGIif9EU0vnK9nrzbEdh16n52M8WquDlttpu yn9g== X-Gm-Message-State: ALyK8tJjf4vMDSczDWAGRR9UVfXVJ5wn71FAc9abJQGyNqkga1KszEbOjboi78JcD3vvC8Vh X-Received: by 10.28.90.65 with SMTP id o62mr7634491wmb.16.1464558854509; Sun, 29 May 2016 14:54:14 -0700 (PDT) Received: from bgdev-debian.lan (jua06-1-82-242-157-225.fbx.proxad.net. [82.242.157.225]) by smtp.gmail.com with ESMTPSA id a128sm20490367wme.16.2016.05.29.14.54.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 29 May 2016 14:54:13 -0700 (PDT) From: Bartosz Golaszewski To: Wolfram Sang , linux-i2c , LKML , Andrew Lunn , Srinivas Kandagatla , Maxime Ripard , GregKH Cc: Bartosz Golaszewski Subject: [PATCH 03/14] eeprom: at24: coding style fixes Date: Sun, 29 May 2016 23:53:41 +0200 Message-Id: <1464558832-2262-4-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1464558832-2262-1-git-send-email-bgolaszewski@baylibre.com> References: <1464558832-2262-1-git-send-email-bgolaszewski@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Align the arguments in broken lines with the arguments list's opening brackets and make checkpatch.pl happy by converting 'unsigned' into 'unsigned int'. Signed-off-by: Bartosz Golaszewski --- drivers/misc/eeprom/at24.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) -- 2.7.4 diff --git a/drivers/misc/eeprom/at24.c b/drivers/misc/eeprom/at24.c index e12d76f..564a201 100644 --- a/drivers/misc/eeprom/at24.c +++ b/drivers/misc/eeprom/at24.c @@ -147,7 +147,7 @@ MODULE_DEVICE_TABLE(acpi, at24_acpi_ids); * Assumes that sanity checks for offset happened at sysfs-layer. */ static struct i2c_client *at24_translate_offset(struct at24_data *at24, - unsigned *offset) + unsigned int *offset) { unsigned i; @@ -163,7 +163,7 @@ static struct i2c_client *at24_translate_offset(struct at24_data *at24, } static ssize_t at24_eeprom_read(struct at24_data *at24, char *buf, - unsigned offset, size_t count) + unsigned int offset, size_t count) { struct i2c_msg msg[2]; u8 msgbuf[2]; @@ -258,7 +258,7 @@ static ssize_t at24_eeprom_read(struct at24_data *at24, char *buf, * writes at most one page. */ static ssize_t at24_eeprom_write(struct at24_data *at24, const char *buf, - unsigned offset, size_t count) + unsigned int offset, size_t count) { struct i2c_client *client; struct i2c_msg msg; @@ -400,7 +400,7 @@ static int at24_write(void *priv, unsigned int off, void *val, size_t count) #ifdef CONFIG_OF static void at24_get_ofdata(struct i2c_client *client, - struct at24_platform_data *chip) + struct at24_platform_data *chip) { const __be32 *val; struct device_node *node = client->dev.of_node; @@ -415,7 +415,7 @@ static void at24_get_ofdata(struct i2c_client *client, } #else static void at24_get_ofdata(struct i2c_client *client, - struct at24_platform_data *chip) + struct at24_platform_data *chip) { } #endif /* CONFIG_OF */