From patchwork Mon Jun 6 08:48:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 69381 Delivered-To: patch@linaro.org Received: by 10.140.106.246 with SMTP id e109csp1377412qgf; Mon, 6 Jun 2016 01:56:34 -0700 (PDT) X-Received: by 10.66.151.138 with SMTP id uq10mr2049045pab.85.1465203394875; Mon, 06 Jun 2016 01:56:34 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ac9si2817352pac.200.2016.06.06.01.56.34; Mon, 06 Jun 2016 01:56:34 -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 S1751923AbcFFI43 (ORCPT + 31 others); Mon, 6 Jun 2016 04:56:29 -0400 Received: from mail-wm0-f45.google.com ([74.125.82.45]:38483 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751571AbcFFItK (ORCPT ); Mon, 6 Jun 2016 04:49:10 -0400 Received: by mail-wm0-f45.google.com with SMTP id m124so62170502wme.1 for ; Mon, 06 Jun 2016 01:49:10 -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=W/9JSK0UTU3Tgxp2wtx0d87h34i9y8c4cCt/FeKevDscU7tVZaB0BEW1DYAehH7ec+ QfT+Y80FH+6ZU0L/xly4wiQzC+pF2xjS7TQ4IdHnv7fwD8STsJToqKQazBwfsraW2JpB 94NRKbq9tf0A2HTPGXEKIh689boWbuebEoItxkPGuTIe1M3FYVEjPL+mzQnCLmgkd6xw oAsMf/Lz0egP3jOcMmNsSvu6SGpaH/s27DmQKEMitTitYOOG4PZgd0LbvPxWNoLmJ5gR 80cGsqt1Oe1VVj01cCxTjYEKrM6UEXRsUa+lKAbnOn6kWgDqiT7tn3J9RjRlBa5owQJt CKIQ== 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=aAtoxmFf2APmCABYA2Rl9b3paaV1VjcyOPX+GfHYTafwkC6jZXchcP65Hcv/u68O+q bS9BfYXLKKNBXD8X6FP227szf0UUVW8Q0r+Go9f5brwJ3+zuUePpNjAhou0c5yYVncDY TQ6nux7dyzJJ5sW9X+JGVgyXjNCS2+InNPu1SZX3q2q5+3oN9hShZXSNCBgUDfR65erJ zXK6EMnvJzZKB4TkQV6j6yu1KgrNX8Ms3eGFYkZLQj6Y0yrlf9LjqbXJ+nllxhkFE861 oFZ66VDzlbO3pu3ih2b0RXzDgem5xyI4mwsPtaZs3D3FIeallGpSsh2tGhKnfpmytKeS omkQ== X-Gm-Message-State: ALyK8tIf+6zK1wtxx4GnE4SrED9ztIofVKaM8y8Rco7SyKjEqsxVApq8IdZzgqUp/M78oV7q X-Received: by 10.28.182.8 with SMTP id g8mr11258640wmf.56.1465202949245; Mon, 06 Jun 2016 01:49:09 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id dd7sm19090384wjb.22.2016.06.06.01.49.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 06 Jun 2016 01:49:08 -0700 (PDT) From: Bartosz Golaszewski To: Wolfram Sang , linux-i2c , LKML , Andrew Lunn , Srinivas Kandagatla , Maxime Ripard , GregKH Cc: Bartosz Golaszewski Subject: [RESEND PATCH 03/14] eeprom: at24: coding style fixes Date: Mon, 6 Jun 2016 10:48:45 +0200 Message-Id: <1465202936-16832-4-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1465202936-16832-1-git-send-email-bgolaszewski@baylibre.com> References: <1465202936-16832-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 */