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: 630719 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3rNT8f1RWSz9sdm for ; Mon, 6 Jun 2016 18:56:50 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b=W/9JSK0U; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751570AbcFFI42 (ORCPT ); Mon, 6 Jun 2016 04:56:28 -0400 Received: from mail-wm0-f47.google.com ([74.125.82.47]:35616 "EHLO mail-wm0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751160AbcFFItK (ORCPT ); Mon, 6 Jun 2016 04:49:10 -0400 Received: by mail-wm0-f47.google.com with SMTP id c74so34711332wme.0 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=l4YWpa9mU6qcdFVMwZZLMGZkq4bq+w8I4EgT3kC0aXRkfNd+Xb1xhocfRnAMc6ly1k 3uNFe9htzfRlZUqz0xWMQ+gjxZkk2xy9KIR6KOuRrRrdwOxN2DB3Fg47+YqOsEVe97UL wGBUwQULCVb8lZo96x4eTJjIxe6nd1kSGzKP/eplRWs4+9ykuRj4ETcdg+KE4JMzpzMS 1q2Mq/cEeC0UqB90dKCW2bzRe0Ax7QIO622fLF1RcZiGP8pM65dQ5BrCRIEqru/EPmKi LW7Eizekm5LkX7XSZ9Nktx717lqgxDwZzcZN7Gf6BPl/XnuBqszMOgL94ZTUb4TZP9eu ytZA== X-Gm-Message-State: ALyK8tKb8JiYrKBJvzWlcqzRRMVXULDDlXeaSd8qtM8FOS61c+UECaUh7FYf455pjMhrt0o1 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-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@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(-) 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 */