From patchwork Tue Nov 17 09:52:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 56764 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp1829775lbb; Tue, 17 Nov 2015 01:54:45 -0800 (PST) X-Received: by 10.13.213.131 with SMTP id x125mr27053812ywd.229.1447754085510; Tue, 17 Nov 2015 01:54:45 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x128si26355782ywa.89.2015.11.17.01.54.45; Tue, 17 Nov 2015 01:54:45 -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 S1753586AbbKQJyU (ORCPT + 28 others); Tue, 17 Nov 2015 04:54:20 -0500 Received: from mail-wm0-f51.google.com ([74.125.82.51]:38406 "EHLO mail-wm0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753500AbbKQJwl (ORCPT ); Tue, 17 Nov 2015 04:52:41 -0500 Received: by wmec201 with SMTP id c201so17515625wme.1 for ; Tue, 17 Nov 2015 01:52: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=q9me/nj/ZskQJXDb1ss0vohp9A9tNrXKTIds9J4k0bGxFffvCtywTz5WerLWhKDwr/ rWbck7+ASQO89VvaDp9JpJIq2zTSSvZNagk2GgtCYRxiLuizDOCFYkSmwAowciOS7NWf YatAI1wAts42hPsCnGt2wndXVMZK6CL1KY15zlY9sTO7IeiUHYvhgHPb+bCwlKkds6bE tcy2/JiyT8LMRqteGot0l0qB9ZQvvg+Z541DqiQPU7rI14f82lvc4nVofcwEP812ENLj 2mY6Jbqjjf+iMz+PTKtjMJIOkxwVsjXIOMtYVc2MnUNaIOPJbzTqEaTngpRC4WdQ9wdF JONA== 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=ZyuCb7adC/AHiZgdiKM8CVlNziBWxkCsh67hPGLoNvM4yLI2I6Vmo0/r3sbQ2cAmsB sDuwzUMgKvfalciM7C4wPKNSKiSoWJ+7UtHa+vdcDCGKmfMkzNbIpsZq0yUSSH9Wp+zS 2uJbfIMcpvJF+2Wxzh7eoseoxMx5kk55mb3EUKACnKt92R9K7bKHxkCDaKjNspLsSa/i uYyAskikAiZjvryfxzPEWqvD8KNd2WaTu9uDvlwfBvBqgGX3g87Fh98yTkDrg28wBrzO 1/r9r6oNbM9CVAV6nHwh8MxlaRoCCNLX3XeJBul0d8BjIzbZO1ObULZBZeIUSBTMxhFr aPoQ== X-Gm-Message-State: ALoCoQmjg20CqlJ/G8pvrC3Xgr1C3CZfoLwjeERk3Ku2knkcr9MZB7039NlZ5xyiF37xfCRcYeDx X-Received: by 10.194.3.39 with SMTP id 7mr42120014wjz.20.1447753960875; Tue, 17 Nov 2015 01:52:40 -0800 (PST) Received: from bgdev-debian.home ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id bk7sm38993546wjb.25.2015.11.17.01.52.40 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 Nov 2015 01:52:40 -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, 17 Nov 2015 10:52:27 +0100 Message-Id: <1447753950-17213-7-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1447753950-17213-1-git-send-email-bgolaszewski@baylibre.com> References: <1447753950-17213-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 */ } };