From patchwork Mon Apr 11 18:57:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 65568 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp1520193qge; Mon, 11 Apr 2016 12:01:31 -0700 (PDT) X-Received: by 10.66.157.194 with SMTP id wo2mr35488712pab.128.1460401290905; Mon, 11 Apr 2016 12:01:30 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 90si4944442pfs.233.2016.04.11.12.01.30; Mon, 11 Apr 2016 12:01:30 -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 S1755517AbcDKTB1 (ORCPT + 29 others); Mon, 11 Apr 2016 15:01:27 -0400 Received: from mail-pf0-f176.google.com ([209.85.192.176]:33761 "EHLO mail-pf0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752792AbcDKS5v (ORCPT ); Mon, 11 Apr 2016 14:57:51 -0400 Received: by mail-pf0-f176.google.com with SMTP id 184so129323961pff.0 for ; Mon, 11 Apr 2016 11:57:50 -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=y7HwHuBtYRJj9Y7UWakB4dAwrDl76e4UkI5ZPPmvA6k=; b=BUsaM81c97BkMz1vcJW/An6dEZ1KmyPXpVOB80pprF4QCmmQ8feZGewb0qK/HZjOep Ucyi/bh5maeUfpezSZ38LUWxJn4Y0XnkIdO8tIEbR1t1qoQlFZb/GB1eYMVXUqvhHyCT qcXl1EvFfAwXPVFtDutNuidniFmZhnGcVqVG8KXgwYnCaf4jJn+6xY8P1zl/Y5ZBulo/ MN2QN/zppQPtc14HcQuIB39sDhIH8nxTinehWr1Y+VMFKOT0KqqYGcPfliLJtKktFH1B gB/K1qoWylqKMN28dtI4kuE/j0c03b6OO/TDN4t6UrVzJ0g8u74SOmutP6anN5HiMLcV Fksg== 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=y7HwHuBtYRJj9Y7UWakB4dAwrDl76e4UkI5ZPPmvA6k=; b=N3hr81BzbSIgDU+XZUwCp0YyItgnYo6RFOhCvpXNVHJyIr9+md8P2LN8UhEiQBQ0Oc SDP8MYI8BXrsT2RhkwlgZc4GGhT9JIg13pF4Vth8NOjTLZNXjdm2wq68RngsIP4iuWcN QvHUXI5yYza1j/IyfVPLWNEFYj3fj/nx8Lf1lQDliiPsQTO/oqZrgt+sYdaWwUYyugj3 +JOKiyLS0TV7rXLjXKkjEbIMWKf4ka93Tw5x5qqOTe83TAGO6qnIQrHHcf9I0yOpGOj8 AtBT34eSP27DWjr72qTyHEN4y2C9E50708cbP9bwURjiy+0qDMiYx1716xFqpCDr9c2T oSqw== X-Gm-Message-State: AD7BkJJ+gCH5F9G9g6QW65r9EVNr0Q8Vn/1bqejFfmrflac42P4vplQD4QrJwaFZFtHhGE7k X-Received: by 10.98.72.29 with SMTP id v29mr34359804pfa.71.1460401070431; Mon, 11 Apr 2016 11:57:50 -0700 (PDT) Received: from localhost.localdomain (cpe-172-248-200-249.socal.res.rr.com. [172.248.200.249]) by smtp.gmail.com with ESMTPSA id ke7sm22322404pad.44.2016.04.11.11.57.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 Apr 2016 11:57:49 -0700 (PDT) From: Bartosz Golaszewski To: Wolfram Sang , linux-i2c , LKML , srinivas.kandagatla@linaro.org, maxime.ripard@free-electrons.com Cc: Andrew Lunn , Bartosz Golaszewski Subject: [RESEND PATCH v2 02/13] eeprom: at24: improve the device_id table readability Date: Mon, 11 Apr 2016 11:57:18 -0700 Message-Id: <1460401049-25459-3-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1460401049-25459-1-git-send-email-bgolaszewski@baylibre.com> References: <1460401049-25459-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 As part of the preparation for introducing support for more chips, improve the readability of the device table by separating columns with tabs. Signed-off-by: Bartosz Golaszewski --- drivers/misc/eeprom/at24.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) -- 2.7.4 diff --git a/drivers/misc/eeprom/at24.c b/drivers/misc/eeprom/at24.c index 001a9af..744c526 100644 --- a/drivers/misc/eeprom/at24.c +++ b/drivers/misc/eeprom/at24.c @@ -113,23 +113,23 @@ MODULE_PARM_DESC(write_timeout, "Time (in ms) to try writes (default 25)"); static const struct i2c_device_id at24_ids[] = { /* needs 8 addresses as A0-A2 are ignored */ - { "24c00", AT24_DEVICE_MAGIC(128 / 8, AT24_FLAG_TAKE8ADDR) }, + { "24c00", AT24_DEVICE_MAGIC(128 / 8, AT24_FLAG_TAKE8ADDR) }, /* old variants can't be handled with this generic entry! */ - { "24c01", AT24_DEVICE_MAGIC(1024 / 8, 0) }, - { "24c02", AT24_DEVICE_MAGIC(2048 / 8, 0) }, + { "24c01", AT24_DEVICE_MAGIC(1024 / 8, 0) }, + { "24c02", AT24_DEVICE_MAGIC(2048 / 8, 0) }, /* spd is a 24c02 in memory DIMMs */ - { "spd", AT24_DEVICE_MAGIC(2048 / 8, - AT24_FLAG_READONLY | AT24_FLAG_IRUGO) }, - { "24c04", AT24_DEVICE_MAGIC(4096 / 8, 0) }, + { "spd", AT24_DEVICE_MAGIC(2048 / 8, + AT24_FLAG_READONLY | AT24_FLAG_IRUGO) }, + { "24c04", AT24_DEVICE_MAGIC(4096 / 8, 0) }, /* 24rf08 quirk is handled at i2c-core */ - { "24c08", AT24_DEVICE_MAGIC(8192 / 8, 0) }, - { "24c16", AT24_DEVICE_MAGIC(16384 / 8, 0) }, - { "24c32", AT24_DEVICE_MAGIC(32768 / 8, AT24_FLAG_ADDR16) }, - { "24c64", AT24_DEVICE_MAGIC(65536 / 8, AT24_FLAG_ADDR16) }, - { "24c128", AT24_DEVICE_MAGIC(131072 / 8, AT24_FLAG_ADDR16) }, - { "24c256", AT24_DEVICE_MAGIC(262144 / 8, AT24_FLAG_ADDR16) }, - { "24c512", AT24_DEVICE_MAGIC(524288 / 8, AT24_FLAG_ADDR16) }, - { "24c1024", AT24_DEVICE_MAGIC(1048576 / 8, AT24_FLAG_ADDR16) }, + { "24c08", AT24_DEVICE_MAGIC(8192 / 8, 0) }, + { "24c16", AT24_DEVICE_MAGIC(16384 / 8, 0) }, + { "24c32", AT24_DEVICE_MAGIC(32768 / 8, AT24_FLAG_ADDR16) }, + { "24c64", AT24_DEVICE_MAGIC(65536 / 8, AT24_FLAG_ADDR16) }, + { "24c128", AT24_DEVICE_MAGIC(131072 / 8, AT24_FLAG_ADDR16) }, + { "24c256", AT24_DEVICE_MAGIC(262144 / 8, AT24_FLAG_ADDR16) }, + { "24c512", AT24_DEVICE_MAGIC(524288 / 8, AT24_FLAG_ADDR16) }, + { "24c1024", AT24_DEVICE_MAGIC(1048576 / 8, AT24_FLAG_ADDR16) }, { "at24", 0 }, { /* END OF LIST */ } };