From patchwork Wed Apr 4 13:16:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 10322613 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BE0CE60318 for ; Wed, 4 Apr 2018 13:16:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ADE9128C3E for ; Wed, 4 Apr 2018 13:16:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A24FE28DCA; Wed, 4 Apr 2018 13:16:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2D93128C3E for ; Wed, 4 Apr 2018 13:16:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=EwJf422YXahCQkeTXuMyeewcpx8ZKVsv2q7vy2pHObw=; b=LPA+rd9ke34GUgK44JTF28y3Rl HnX6fV+MxxmSzTQsFcSC/1UHp1Jt7XdQZvh0qJu1qTTh+LofW5GrmhsUidc9FXNATxZJ/76kINIG1 PeqPXMX2m42ckU3gy19ooXvFC5UeuRGDmjhSBjyII7bHJFuNULA/2EtuJ5Tjn3U+cIEDifQX9PznX 1CWi86RqTUPMDaqsr9bdkKQd1bJ4Bo5t9cJWFFnGFE/AkYa7L1ZoMB/INJw/qncn6CqR9QIYFZfx1 mWHF0huXZBhzXP1XQQOKJ0wFvBv3gu+e5DDtTn47eZPkfHTCiUbmqALIrrGyJ9IBWC3ikGIPSLWxp Zw/Xlp7A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1f3iHU-00066w-Hs; Wed, 04 Apr 2018 13:16:52 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f3iHQ-00064h-HI for linux-arm-kernel@lists.infradead.org; Wed, 04 Apr 2018 13:16:50 +0000 Received: by mail-wm0-x243.google.com with SMTP id t67so21253687wmt.0 for ; Wed, 04 Apr 2018 06:16:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Lz2x1iynHu2JlPIr4gY/3O1agkeFXmxLqps+INQJZsQ=; b=xSbQPs1MbEFWrCPTLSGs4QAFT3zezph8/JI0Vh26tYjbdDVkSQcv9M3WtSrWkHo4HH iFTiTR+Q0nMCu7kkhmr8hz7ZkDY2jMx8j0k7tnLeHr5s/t/FxqCtkOPeyamycE2k3gww CzZI24MKu/JwC8yV4XlG2kIWs56ybGvOKLFCIVopGlouFh/r6+hltflp9TKON7NhRU3t DgLbBGOlLtIOND1sIYNF0TWQ53PXUo6RPxIP0GxczaDNwXBIF2AEGszleKu3joywnKpo fmodtcY36GlBizwcYnexnJiDiCa71FPucF3Mw9AE4SuhGUapSCqyBHjwH5c+kuHt997y fc7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Lz2x1iynHu2JlPIr4gY/3O1agkeFXmxLqps+INQJZsQ=; b=csId0/DqcI4tkhZoUBFFZyLx211WNdesfRfvghO2q58k74HpABG0j3AmsEzeicJU// KWt0aT3BKYNRCpyK6s3X5/rwPQSx+ZHczyEVlm3I6e+SlQZlB5RTPsxjvrB8F9UJZWi8 E+IEjN56N0cg7qnaiNFyGmfmCv31ex7bKpLV5WaWktbc1v/km5tolWP4Tr84/Nx49/bY spB1AifBVImsmk39XHYmSadveRrjLEffTgC3t8mrmn2Trny0FGFxwaiTRdYn5ND6dC+j Jy8JZo/qgJOhckffAjRjRQskRptirHpiSMvRh+l4IjgckENw9wVMz2wE+P7q6aXMps8q nabw== X-Gm-Message-State: ALQs6tAtUF+PAd+Fodrh5lpkTOVHb7OUWcQgHEAu6gD+8DMM1lOHVVx0 Bc0TP8zb3zta57+MhvNuvmwkpg== X-Google-Smtp-Source: AIpwx48OSsqpeOp8apEPtjsvxLZmvU6jzcpd6j6YVa/XZ+61NRU05la28KBGO4oFQ43IoQHynTmAug== X-Received: by 10.28.133.197 with SMTP id h188mr6692585wmd.18.1522847796785; Wed, 04 Apr 2018 06:16:36 -0700 (PDT) Received: from brgl-bgdev.baylibre.local ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id g38sm8523884wra.77.2018.04.04.06.16.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Apr 2018 06:16:36 -0700 (PDT) From: Bartosz Golaszewski To: Shawn Guo , Sascha Hauer , Fabio Estevam , Russell King Subject: [PATCH 1/4] ARM: imx: vpr200: drop at24_platform_data Date: Wed, 4 Apr 2018 15:16:24 +0200 Message-Id: <20180404131627.9135-2-brgl@bgdev.pl> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180404131627.9135-1-brgl@bgdev.pl> References: <20180404131627.9135-1-brgl@bgdev.pl> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180404_061648_571540_508A4603 X-CRM114-Status: GOOD ( 15.36 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bartosz Golaszewski , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The information contained in the platform data struct is redundant. Page size == 1 is the safe default assumed if no pagesize property is given. The EEPROM size can be indicated to the driver using the correct model name. Drop the at24_platform_data entirely. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-imx/mach-vpr200.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/arch/arm/mach-imx/mach-vpr200.c b/arch/arm/mach-imx/mach-vpr200.c index 5ff154c9a086..da3336aaa4c5 100644 --- a/arch/arm/mach-imx/mach-vpr200.c +++ b/arch/arm/mach-imx/mach-vpr200.c @@ -29,7 +29,6 @@ #include #include -#include #include #include "common.h" @@ -145,15 +144,9 @@ static const struct imxi2c_platform_data vpr200_i2c0_data __initconst = { .bitrate = 50000, }; -static struct at24_platform_data vpr200_eeprom = { - .byte_len = 2048 / 8, - .page_size = 1, -}; - static struct i2c_board_info vpr200_i2c_devices[] = { { - I2C_BOARD_INFO("at24", 0x50), /* E0=0, E1=0, E2=0 */ - .platform_data = &vpr200_eeprom, + I2C_BOARD_INFO("24c02", 0x50), /* E0=0, E1=0, E2=0 */ }, { I2C_BOARD_INFO("mc13892", 0x08), .platform_data = &vpr200_pmic,