From patchwork Sun May 29 21:53:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 68806 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp1113580qge; Sun, 29 May 2016 14:56:30 -0700 (PDT) X-Received: by 10.66.66.10 with SMTP id b10mr41247328pat.12.1464558990883; Sun, 29 May 2016 14:56:30 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gs7si45752648pac.201.2016.05.29.14.56.30; Sun, 29 May 2016 14:56: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 S932590AbcE2VyY (ORCPT + 30 others); Sun, 29 May 2016 17:54:24 -0400 Received: from mail-wm0-f44.google.com ([74.125.82.44]:37301 "EHLO mail-wm0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752924AbcE2VyO (ORCPT ); Sun, 29 May 2016 17:54:14 -0400 Received: by mail-wm0-f44.google.com with SMTP id z87so50830667wmh.0 for ; Sun, 29 May 2016 14:54: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=llaVbQToAdDbWOPIrhEhKXuWBtJKjCsYqIGd5Kl88GY=; b=QOalgq5OTu20Gm9g28sHa5lqfYlhka2DtplebDZqWbZ/wKSLrr/WQZ7y/qQW+TzQ/G kn8xdaDPhhoVgJ3mhXpHdjhRxcSsWgSs9IGZx2ychHFBz9CyJel29KuJituq5rCuzfAj PdO735xyu5AFao/JtK8GIEJG5tiIIVXpv9/9pxo+aRqAnLCzEKKrd4h27VntdvAPcYQm zA/v6qhgsUxp9Jl+8Zwrppw1tA2S4LMSUubyzqaCT2wofGd1FdV0yeqlqYRdbdzQdSIX r0MQ1lIzEySo6/zHR+bc8ngl/6uZukmBG9mv6BTSkA9mKgRD+btIhU8+fotOS42fFvyA Z25A== 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=llaVbQToAdDbWOPIrhEhKXuWBtJKjCsYqIGd5Kl88GY=; b=TDoiyPBJRNSgVplYeyNECN4aaHCg2fY0gECy4NCbMv43TUnYul4sbYojqXuv4GxLmN l1OTgJLx5F3nL9JHU1EuYNZIj+kCADG4B4xvclw/YUWWSVTm1L8iKYOEg8mKUoVyuAvK JWAHUV9B001LCnQ5KY/Dor9wy+wyP5uJKr7DkNCGuDCTu2+UigXZw0eHG5pcmu7enkWr F6jlN5UTpDbSTuCBAtXSLFEY1OvQMz27rAuBnOG+8rQNT3XVhhUuBTDdHk+C+jvSzh+R 7bPsi1Y4vRgZWYN+iPx4u3UItgrBlZ9UPqo9FUIagPi0sq8z2d2ZWOSGMfaoCXj8kdDp kK9A== X-Gm-Message-State: ALyK8tLdJNMlJbLSFrAnbSx7pifi/mqE/Uw5CzGsF9QvfQdX7g9ZYPJ2U5wpJFyGuzcGNZ60 X-Received: by 10.28.30.209 with SMTP id e200mr8045950wme.90.1464558852170; Sun, 29 May 2016 14:54:12 -0700 (PDT) Received: from bgdev-debian.lan (jua06-1-82-242-157-225.fbx.proxad.net. [82.242.157.225]) by smtp.gmail.com with ESMTPSA id a128sm20490367wme.16.2016.05.29.14.54.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 29 May 2016 14:54:11 -0700 (PDT) From: Bartosz Golaszewski To: Wolfram Sang , linux-i2c , LKML , Andrew Lunn , Srinivas Kandagatla , Maxime Ripard , GregKH Cc: Bartosz Golaszewski Subject: [PATCH 01/14] eeprom: at24: improve the device_id table readability Date: Sun, 29 May 2016 23:53:39 +0200 Message-Id: <1464558832-2262-2-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1464558832-2262-1-git-send-email-bgolaszewski@baylibre.com> References: <1464558832-2262-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 9ceb63b..411600d 100644 --- a/drivers/misc/eeprom/at24.c +++ b/drivers/misc/eeprom/at24.c @@ -111,23 +111,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 */ } };