From patchwork Thu Mar 24 14:45:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 64365 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp696474lbc; Thu, 24 Mar 2016 07:46:35 -0700 (PDT) X-Received: by 10.66.253.193 with SMTP id ac1mr13354212pad.121.1458830795639; Thu, 24 Mar 2016 07:46:35 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x14si1987457par.197.2016.03.24.07.46.35; Thu, 24 Mar 2016 07:46:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-i2c-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of linux-i2c-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-i2c-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752425AbcCXOqV (ORCPT + 1 other); Thu, 24 Mar 2016 10:46:21 -0400 Received: from mail-wm0-f45.google.com ([74.125.82.45]:34913 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751939AbcCXOqO (ORCPT ); Thu, 24 Mar 2016 10:46:14 -0400 Received: by mail-wm0-f45.google.com with SMTP id l68so239767078wml.0 for ; Thu, 24 Mar 2016 07:46:13 -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=Qo3jjisLXb5IW3zsCq0VuuwLkrEOsAWx0rkjy2M8+wuLHBMq5/Pk6V+5F2yxpipc9d 3e0MjvU9vzDJdPG67Ato42jiakcdXt2rL+1Hi3aGD+zCEPr1KjCZNQjHyTbp60dvDkmu lpFpBaZOemYgdF8qWP13aXG6J7G9GSPOKCBnoq1CZC0d6b2L8Rme13xNAycNNhXcSf6s lUub4CvuwqBVgM8EKUOywJ8s9Iy26iYEpkzA/EbPktyCCvQXMqAl76mRUqseZM/CkGXi X/VGPftE9Thc2xqyTUQmEOPxTX05/tlVy1TCplDsb18d4vLQ8hdnDmuncpj7zBJorHto Boug== 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=QAEUFOIvzbbf8/B8faAMgnL+R/Magp1OTmY2OadgWz8pGh3jphCvDyQEbEaEgYlB+4 QeXEXA0IO4CxywCErhzjYXrHwdYXmZko8SzC0cNYEAwwFBE7p9Sud8gkBSTwrKWkmxNo CY4+xG5TEPrrjP2DOo5YZouYLNKYMtWmfoLgtOAKLoMDZcDoygxBSZ0tUht9B8RsPW22 uGTPMBTvXqg9Ocpu46nCffurx8sDG4C6wMtaLUTDtAudMNXfLzPcRuxR4VOmlImjKk7a RzZQcK4qZhP02avOHUtmRwr79wfdT9esaPCx9P+/+QK74Q84ELpVK0C3TqmXSHQIGF8e CfqA== X-Gm-Message-State: AD7BkJIZgfudgGWTZSBgIh8bl8BEBzduDsOfnDwNK/1QLV3YspWhxg9w0jqsByaabN1LxaAd X-Received: by 10.194.95.73 with SMTP id di9mr11192927wjb.152.1458830773201; Thu, 24 Mar 2016 07:46:13 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id k125sm27255752wmb.14.2016.03.24.07.46.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 24 Mar 2016 07:46:12 -0700 (PDT) From: Bartosz Golaszewski To: Wolfram Sang , linux-i2c , LKML Cc: Andrew Lunn , Bartosz Golaszewski Subject: [PATCH 02/13] eeprom: at24: improve the device_id table readability Date: Thu, 24 Mar 2016 15:45:56 +0100 Message-Id: <1458830767-23816-3-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1458830767-23816-1-git-send-email-bgolaszewski@baylibre.com> References: <1458830767-23816-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 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 -- To unsubscribe from this list: send the line "unsubscribe linux-i2c" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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 */ } };