From patchwork Wed Dec 2 10:25:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 57546 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp2772198lbb; Wed, 2 Dec 2015 02:25:59 -0800 (PST) X-Received: by 10.66.164.196 with SMTP id ys4mr3344404pab.119.1449051958614; Wed, 02 Dec 2015 02:25:58 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fn8si3827830pab.123.2015.12.02.02.25.58; Wed, 02 Dec 2015 02:25:58 -0800 (PST) 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; 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; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756619AbbLBKZs (ORCPT + 28 others); Wed, 2 Dec 2015 05:25:48 -0500 Received: from mail-wm0-f49.google.com ([74.125.82.49]:35469 "EHLO mail-wm0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755512AbbLBKZl (ORCPT ); Wed, 2 Dec 2015 05:25:41 -0500 Received: by wmuu63 with SMTP id u63so208405584wmu.0 for ; Wed, 02 Dec 2015 02:25:40 -0800 (PST) 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=rIfaGPpRbfKv4xmh64unoaxoUb4OnOskcAGmhgzMUwQ=; b=yUWwT0NMkLho6u27HofZsXltirABvStraLZvvwk9GjxJDtjXyDhDO8Y78eHc7P5MuS qHtAcVpWnJ21/W0p8j9CFBrqBHsChNUtkDDt33Vw6ou/IklU8ye48Jdb1doPhDt3mFqw mVD8hl9oyQoucdvWO6OAOszAn03gcfRg9X6fWfAZMtGIbnGH+F5QT3eCLIMCUcK9AaJX PfxSfYoyAgBnFe1n5wv2hrZ51WvbcLJX0RBEm/bHSqYN2PEqqEYY9uTX+I+ak7B1XfKx PYWOdHZBXx6ppgpddUsmvcETkkGaAu6DFTBmw8vVLIqGRGqtf0ORw5Gk7J4qdEtlD0CX +2Yg== 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=rIfaGPpRbfKv4xmh64unoaxoUb4OnOskcAGmhgzMUwQ=; b=UtOkG5kW/ZoNFN6MVlarjlboeCdPxDTQ4PmNxk/p/YgM8jAZ6gn6GTL9C4j3O7gbfC u28RIXw2ZK6v9W/i4N+Eh4UBMYbO2yY39Ia1PA3cRPWtRLdxDkgUBt6v71+EydoG5+xX CQTtUJ7qCJt/tsYdHaLPlRl4itE1iqeq01gXPXRJqxEzNnKH43HZ34nPd5ZUNDd123DX xiAP6GCSD3RJBz8uvATeyxKYmHxXc3UYJw4c881xZK47dppms0GAb9XrzrcyIoGpCPV1 KjWYMOcJG3NxuBf6tCalQWqq0s0nrNgAwOdJ8KqHykw/BykddzX7/Y+/TY/YWkD9bm3f ZEAw== X-Gm-Message-State: ALoCoQkc95zVWiXFgXFDBFVDFFapHICZdZU3cB7R4E/Nl0KnqFlIPSrLaMOXNpNEfWMXSdY5qNHt X-Received: by 10.28.153.137 with SMTP id b131mr4810295wme.3.1449051940408; Wed, 02 Dec 2015 02:25:40 -0800 (PST) Received: from bgdev-debian.home ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id bg10sm2077707wjb.46.2015.12.02.02.25.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 02 Dec 2015 02:25:39 -0800 (PST) From: Bartosz Golaszewski To: Wolfram Sang Cc: linux-i2c , LKML , Bartosz Golaszewski Subject: [RESEND PATCH v2 6/9] eeprom: at24: improve the device_id table readability Date: Wed, 2 Dec 2015 11:25:23 +0100 Message-Id: <1449051926-21918-7-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1449051926-21918-1-git-send-email-bgolaszewski@baylibre.com> References: <1449051926-21918-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 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.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ diff --git a/drivers/misc/eeprom/at24.c b/drivers/misc/eeprom/at24.c index 65fca1e..d474b6d 100644 --- a/drivers/misc/eeprom/at24.c +++ b/drivers/misc/eeprom/at24.c @@ -114,23 +114,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 */ } };