From patchwork Tue Nov 24 09:44:42 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 57214 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp1973466lbb; Tue, 24 Nov 2015 01:47:07 -0800 (PST) X-Received: by 10.66.251.226 with SMTP id zn2mr41461441pac.44.1448358426914; Tue, 24 Nov 2015 01:47:06 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id go6si430110pbc.166.2015.11.24.01.47.06; Tue, 24 Nov 2015 01:47:06 -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 S1753999AbbKXJrE (ORCPT + 28 others); Tue, 24 Nov 2015 04:47:04 -0500 Received: from mail-wm0-f52.google.com ([74.125.82.52]:38135 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754107AbbKXJoy (ORCPT ); Tue, 24 Nov 2015 04:44:54 -0500 Received: by wmec201 with SMTP id c201so18156365wme.1 for ; Tue, 24 Nov 2015 01:44:53 -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=ME0fa2VKWoEb8hUHY5LQG06NK6TEAeGHiKj9zoUNCxnCFZ9WwjBG9zcaw9BOk6ZB3I /tcYrmzlou+Z24sPVorRwL+SZx+tzmd0DtKunj3vfLpvKSftLkBttxowv2p7117c0x7O vwvea16UVaQSRiWz1M29CSoqqmaQSzjD35nWWEZqQ8irvWGwTuZOljv7jrCdnFlhfY2V bzbmN+Zwl9lXJc6DZ742yNsE1PIfCX6VAh1O6vZsKXwsh0TWZGYRyJjiX/bzkQ6uHkUW xzGhQovlrp7XbRFJDBn0B2PhObpk8cy4i0GZO2FpyAmL7Lmm2KCDxtQvpyq9WoHqgo9+ WPqg== 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=evnV0xdqjqKR8XudKSWQP0rbIwBuAU2rCCmeq3oISxmmyAyMtu8iRkRvyNE+bzS2xF ZkXiLbs820iflV1OJRDcoSKWeI+JGbbpAhKpWlOFXwfY4Q8JUkSI02lfME/sqmHRgIAg PEgQdZ+oRynpo/NPPcdl9ERzPIju5aWwkcCW28MrEdVUpMFmodWEfYTYnrS1BCVZXDow PReoy/+VCsmiVU9IjlFKvejwm60UhMjnW+jeLJdr3f9Py+5dHNG1lLx67SdBo6BeBX/g b4eyDGx+uxufnmIV3sHWIJupCC0AhWgC8X2nl7dcyrEDY4+3Sr93ZYKZNeO9Qk55Sjdv YruA== X-Gm-Message-State: ALoCoQlch2v6MMIhh7Yzv0nRyJMSMm7swMVeO0CS/tq3UHDaWG3OxZ1zhPSBxaq7Mrebiv+SE6Vo X-Received: by 10.194.134.3 with SMTP id pg3mr34756844wjb.63.1448358293538; Tue, 24 Nov 2015 01:44:53 -0800 (PST) Received: from bgdev-debian.home ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id cl5sm17353156wjc.29.2015.11.24.01.44.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 24 Nov 2015 01:44:53 -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: Tue, 24 Nov 2015 10:44:42 +0100 Message-Id: <1448358285-25016-7-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1448358285-25016-1-git-send-email-bgolaszewski@baylibre.com> References: <1448358285-25016-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 */ } };