From patchwork Tue Oct 27 11:43:50 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 55594 Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1739662lbq; Tue, 27 Oct 2015 04:45:01 -0700 (PDT) X-Received: by 10.107.160.143 with SMTP id j137mr42878999ioe.13.1445946300970; Tue, 27 Oct 2015 04:45:00 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i12si19669838ioe.71.2015.10.27.04.45.00; Tue, 27 Oct 2015 04:45:00 -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; 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; 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 S1754224AbbJ0Lo7 (ORCPT + 1 other); Tue, 27 Oct 2015 07:44:59 -0400 Received: from mail-wi0-f172.google.com ([209.85.212.172]:36775 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754204AbbJ0LoS (ORCPT ); Tue, 27 Oct 2015 07:44:18 -0400 Received: by wicfx6 with SMTP id fx6so155297981wic.1 for ; Tue, 27 Oct 2015 04:44:17 -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=obJWIf/4smcV1c+6w0folMxMNXA2YwqaygaNPUQtwlM=; b=SDg2MqLV9Mwag4fmTpJfCmBJ2btSIFV5TZRiZpOzGkRzkRPY66rvHJuOBR22flPgYj 0zm+2ubHE8DGMznAU9KJPCW/mK4ch5mQe83f6jfEwANO9qe3NYzPB2iYsZMnOO4FvxOh 244WAB0nxQEDTK1PssNqBVZ6idtir/SHQgRPK8Ve/WaXHpYEXxKJqAh3SfPITpDuEqaB YhYdeejZErHj8joY8azThkol9YGPXwHwOW23vLdNl0yWmdoxr4TK6jsTtBJFgGyWUtbx qwrMn49JiSsbkOxO0jq2xpEiRJyfhVn7XUaPurTN9kSJzUi+o2rfk5pUI7pgDPlpQLKe PV+A== 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=obJWIf/4smcV1c+6w0folMxMNXA2YwqaygaNPUQtwlM=; b=UcVreXhoQVRr022LQaSwWODGr2HliPGdcUrN40OSNWQBX6um6dz4g+jSbac9dDPdNW Mwbi1YBPSJsfmcvVYtm1+LZj8E9PQji7i1xSfhJTR6lhSme6U6TdrLVqUNdN6vMHefIW Svj1bWveiGqI46Ijr0p9PgMEEqs3ZjdzRxsNZEEX9cXDmQUBm+2m6XoeY8JLZDZVdl6G ToQ6eGqVz2Tex+RMM/Iu0SKAaiZV6BK2dF+H/f3Isbc0y3X4fKvxdvh0Wd61VAeMO13y /VGjpDee95HJVTIoIpulPQFdFWJuDB2GPuT/5CxAofILfSe1nMDtp4J1maBcLBX9ocuI aOPg== X-Gm-Message-State: ALoCoQmq3rIQ2DoekGXvve6G6HuRwiZmy/vlUFYrwiwJlxn7NAGcfdmZgXqO0y50pMNIL6cRui0o X-Received: by 10.180.75.102 with SMTP id b6mr27530469wiw.76.1445946257685; Tue, 27 Oct 2015 04:44:17 -0700 (PDT) Received: from localhost.localdomain (cag06-6-78-235-100-105.fbx.proxad.net. [78.235.100.105]) by smtp.gmail.com with ESMTPSA id gd11sm17451281wic.20.2015.10.27.04.44.16 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 27 Oct 2015 04:44:17 -0700 (PDT) From: Bartosz Golaszewski To: Wolfram Sang Cc: linux-i2c , LKML , Bartosz Golaszewski Subject: [PATCH v2 6/9] eeprom: at24: improve the device_id table readability Date: Tue, 27 Oct 2015 12:43:50 +0100 Message-Id: <1445946233-6071-7-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1445946233-6071-1-git-send-email-bgolaszewski@baylibre.com> References: <1445946233-6071-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 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-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 dfc7b55..d13fd6b 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 */ } };