From patchwork Mon Sep 14 16:53:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 7177711 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 80B12BEEC1 for ; Mon, 14 Sep 2015 17:08:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AA3CC204E3 for ; Mon, 14 Sep 2015 17:08:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BFDB12049C for ; Mon, 14 Sep 2015 17:08:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754683AbbINRIh (ORCPT ); Mon, 14 Sep 2015 13:08:37 -0400 Received: from mail-bl2on0140.outbound.protection.outlook.com ([65.55.169.140]:2446 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752316AbbINRIh (ORCPT ); Mon, 14 Sep 2015 13:08:37 -0400 Received: from BN3PR0301MB1300.namprd03.prod.outlook.com (10.161.210.155) by BN3PR0301MB1299.namprd03.prod.outlook.com (10.161.210.154) with Microsoft SMTP Server (TLS) id 15.1.268.17; Mon, 14 Sep 2015 16:53:32 +0000 Received: from BY2PR03CA056.namprd03.prod.outlook.com (10.141.249.29) by BN3PR0301MB1300.namprd03.prod.outlook.com (10.161.210.155) with Microsoft SMTP Server (TLS) id 15.1.268.17; Mon, 14 Sep 2015 16:53:31 +0000 Received: from BN1BFFO11FD015.protection.gbl (2a01:111:f400:7c10::1:176) by BY2PR03CA056.outlook.office365.com (2a01:111:e400:2c5d::29) with Microsoft SMTP Server (TLS) id 15.1.268.17 via Frontend Transport; Mon, 14 Sep 2015 16:53:30 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=freescale.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none; freescale.mail.onmicrosoft.com; dmarc=none action=none header.from=freescale.com; Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1BFFO11FD015.mail.protection.outlook.com (10.58.144.78) with Microsoft SMTP Server (TLS) id 15.1.262.18 via Frontend Transport; Mon, 14 Sep 2015 16:53:29 +0000 Received: from fabio-Latitude-E6410.am.freescale.net (fabio-Latitude-E6410.am.freescale.net [10.29.244.190]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id t8EGrOfJ017259; Mon, 14 Sep 2015 09:53:28 -0700 From: Fabio Estevam To: CC: , , Fabio Estevam Subject: [PATCH 3/4] Input: touchscreen - Use the preferred method for kzalloc() Date: Mon, 14 Sep 2015 13:53:19 -0300 Message-ID: <1442249600-666-3-git-send-email-fabio.estevam@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1442249600-666-1-git-send-email-fabio.estevam@freescale.com> References: <1442249600-666-1-git-send-email-fabio.estevam@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD015; 1:4RF46pjCW3ok2YmElSVoPqfdS3F1dA+3I4A7+UPVEES/oVlfKpeNZ6SPwA6jmbQ6studfrWH7UILpTAbqNG3IGKJwuIelepmZgCRDtTBi/nUDAshBUGfKF+lCe5QFej2OAI7ha1CJA0y5r7Dxt2cyY9ew9qba106Xyv9lKig78CMHypDyds3s0xthrd8MbXE3jL8NROP+N9YAgZmYA9Qiffix+neFuFw9PI8DmZZD4ZLuXK/XnGxktiqQiQ/WGUMYaO3dsVZ+ZvuaURYTboPdcanPK2yHeZTmVxKLzBeQDJjg2rW87tygbiV4Ui8cnm0vXrffzqQ5pYIFBgHKCjzxh0qDbOHdHrAZ6XkU2YAVhJefwaQj8iHaAtpUmiyTwTLi4QSZGqvCxagXSsJWTg7TA== X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(6806004)(5001860100001)(189998001)(19580395003)(48376002)(5007970100001)(50986999)(5003940100001)(110136002)(5001960100002)(50466002)(107886002)(86362001)(19580405001)(76176999)(105606002)(106466001)(46102003)(2351001)(62966003)(36756003)(2950100001)(81156007)(5001830100001)(50226001)(97736004)(4001540100001)(77156002)(92566002)(77096005)(85426001)(68736005)(47776003)(64706001)(104016003)(87936001)(33646002)(229853001)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:BN3PR0301MB1300; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB1300; 2:FWTQjHTT9NqDi/hJ952P4zytcONXXmsRXrZw8igztC6W9Dq9zukDZ3S1b1VOJZaizrM1Mmh439zmYk0rcUSzELyRckaimtzkHonxbGuoflFRKXLMbBHXRDqXT6ZnQguhnqtzC3whwp7DN++xmDBn42PNjI45a7/GYYAYqEoL2Uo=; 3:0I6CRHaQcEtC8wDUayFcc7Ak1SoJx8xunzkU0GMtbcVO42xiFBN4X/eNsL2tE7MsH3P3fXNV4L0NOv7BrqMWsdGesDEG8LbeUW+thu/hygJP/TboyuX1FOewyaEOlflidOaFKUKMmd0VQjAAd6E8vkHFb5LBIMJF9WE3pB0/VtbcqjdKakYTOqQEJxvyKG2pIzTRmE6HPMiKYH0MrqqSwJ7YBe2/ck4CrMom9+EX2PU=; 25:30QiOvSKNiW/SOr7WBK799IA36+C6haljUR6GR/22Lzz9IxHS84/49VvM+nmfgnvLApABNZSS/AmF5kZsF9lp539j6ab1oZlPuYiUnyMMbMDthJwgDMP7x7nRcI+xVqsoo07hsgqWuuhrAjPeWcutjDnf4S7XkF5fbMyHWpIx1wRQ3EeL1rclRDug6iB8P6489cRFuvQdErbO1l0nmQ+44JIPm99tM0sPiB9aOEphw+LlayULN5gwUJfKOFFm/yG X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR0301MB1300; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB1300; 20:5Tuhsr/OPumSsH3S0TfxIY50NK7bA7ep2AgyB06MGmdZBH9GzpClw0LxCL2501KMJ5aw/M/+AyzvxSiKJKA6ucVxx9ob9Nf2tg0d3dLdgfwD+1Buzf8ZZt/C12/cTQvfoDIsOyJLeu79bSLvUSAIW86AkSInvZYh6jpgrP814AT9ZLGSRvAb75lNCHaA45T4pfW4SNxiR84hlWtOerYU31GeAdShWbpzwYOylJONctUU9NcOQKMwFhXu78AsGLFmwzIV/Y4GBVDXVvus03wsQftaj4nLyJyfzrhvdV0nJJ+zPOj1OJSe6gC3TUTUJ+8FBLRVz3a18PyaLJ8BcSkO3ziXZr8Rr4Bng6Uu0wsGyZI=; 4:iiV2g4DNNDEq+3mnuVQ2N8QWTjxQMkRThEKpBFlbo4rIIjkexH7UAgirU5Q58IPlmV4KYfUw4ZQRlVfq5A6kO5V0jrgHQ2mIVJSy6OOuycjWWfOkrms+4jWNkYN8P8bcE6iO14t8cLT6Z7dPw16IfnEIi4rEDCQfCgtFk74YPnYOaoBQlhjq3kU+DVTqEzltOjccf+429EOV6aL52IKTInFyaXPU2vixm0CC7h4cnZMfkdo/YzAGsRFO1WHUlAEAqx+kFYuIleZKuLwznXjsUU+5WoHOfmkxK4vi3MG3Q1zKcweoA1UDEH7htnxmN/vl X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(8121501046)(3002001); SRVR:BN3PR0301MB1300; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0301MB1300; X-Forefront-PRVS: 0699FCD394 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR0301MB1300; 23:ktqZrUGr1gFaPp4pBYeTCeydvedzlOYuhKoJDXQ?= =?us-ascii?Q?7NGY8Uvla+EAwtMlTRVQyrzPY2C5qAABTzLDNbpE+VzI8Al+Av+29QM28mZu?= =?us-ascii?Q?Dj6mefH8ry+iK2F3oncq+8dN8GrBwAug3npWMAEkrq2WabfORRm6YVVZlfXs?= =?us-ascii?Q?WyHG8ozios1BTW+oHvwqPND3ZX8ES+6RI6V4+nHOr3FPij2pV3MUvW9mFxS2?= =?us-ascii?Q?UEKhTU/ZsBfdH/ljFaDYJwyzQ5EqF8Vs+TQziVip+7gz/0awvoMowP8RfP2E?= =?us-ascii?Q?qHi7zKu3GppfraOksqoFI7n6N4S4wzvsVOQ0HoqfLDOaEG85VxPR4CESMtIR?= =?us-ascii?Q?wYQUbM61N96FrjAtrZuX2XMClUJz2/PwhLwPLtYHtQMNkTaNLwq3SNSpdBFN?= =?us-ascii?Q?h0SPdkhwLTU8tzUnMikoXWFdHnyMOXyLTcT5RJQm1USUD5RDudMijYm9ge+v?= =?us-ascii?Q?b01ZhGAdC3P/DIL/Br/QnIwwTussIisA6lEn90XHqhTOXYiWL5Qxn49HZYlK?= =?us-ascii?Q?eVh/6sJ8DjMka0FQTBBPHSAeh5OiWlSNb/glG0s/OXObFxY9ZHcTezfRPgPr?= =?us-ascii?Q?wya7AMhRzjWyaDKflo8mJh1UqIUPkIlhUr4zLX2MJc0Dml7r0sL9fsqIPnw8?= =?us-ascii?Q?BlQYZcjS9QZsOlWZvOCJU2B40rI/uhCdOcLZifV24qRlHEqvdoM6xItdC+sa?= =?us-ascii?Q?xoxhh9+CoXyrgq/eh/wOURBW6DNH34/JdrVNHQkAuCDzCPRakqnAiwRPj930?= =?us-ascii?Q?gh2BoB+neDfB6H0K19YiFHSYE2R+SNDMH1cFQo04s9Zpd8JGUSYqgM5AbDUX?= =?us-ascii?Q?GcKFphpPhw4e6QcNSj7+qe/38S/fHITr8R9l9tqzTlg1M+u4pgBKVXdB0bwE?= =?us-ascii?Q?1Sz5Km8zndKr+b7Tv8kO4ao1660JEdvR+4MaBIRUYjQOVmCwC9iiYu9fNFwM?= =?us-ascii?Q?eUDuBc91MntYDTudPv7jsrMw4V5cS8FXoORMxWd8LHnNQacRYaHRAclRBmI+?= =?us-ascii?Q?mwhc/6NTJJUC2iiKM7uV2/5H1gpDH7oiNTavDabkhHEIs01wle0Xzd1ktc+y?= =?us-ascii?Q?+SuLEZ/VrwisMr2EKLwva/KY7wndFHL7AYPFzWLOzB6QOGyO/sSo5B+YlNrz?= =?us-ascii?Q?ax4e1VA/E9D8nvF0ErUBVipZjHp8vc7Jj+fPbfIVZaEcI9Hg1BmiSCeU7FoF?= =?us-ascii?Q?eavydcthnT9F5/vXBWZ4j3IuiZUGs3G+vYMYSDcM9ASDQQBDbtGZ3YG2OMA?= =?us-ascii?Q?=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB1300; 5:lMqQhNltJTay7FwrgOW55+EnOS2IbvuR8MmFmy9iXKMwYk8uXV+4ApCZFGcVMaaVPOgeZ636dBauJ78jEsa3ESMGd2yL2Ih205nOmMcc1fLhdrfaNXmg4LJ36y2msUOJg/PdwvnTyPY9Mg8GWB6opA==; 24:nq1A3dd7Emqd5YLhb9X5ntqwtDVdkA00cTeumZI90TFtN/+ZpHxm/wYbeEbnAaj8Pzpb78slNr1Sgn0e8PtIiZ64rThOx2tNM5L2wPeGcQo=; 20:xhvrfLtwRiYuCdksiMrOlVrAm5JGzvfddXo+3kcsIRcEvXBPJkKpwPR1+OFD8Yf9z4KLhKbbQR7kaQj3lg/qyQ== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Sep 2015 16:53:29.9152 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0301MB1300 X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB1299; 2:xX3IwL2CmxTPBXdAPuLG1L41+T7MfL8L6q1ddyp7s1zgS5Yfnw8ffet8g28hZl6IsWBuNJNVQfWzfpeg43YDOtmE5x/yEDsg/FdGutQ2Xf9eU2DQTRtG4t/YJphpbPUypYyu1hV5BMs3EzWjcccXCSMPHowj9bQBv/yGhV2ebGY=; 23:hfXkxWn7Nrm5yY8lN0/GmkFPMoFfDYHuZ0brRF+xPWyuejzqcSozEXb6qOEdhBvd8ZCb2Qsenh5aLjlXrqdzbxPzIWrxh7tE3mohvG5xQkpz1gGb9rdNHkyViMNS33VzgGgNd4rMakAJamUIyPpB6YMCmkSUxxnUjQnm5YsqkjRtr9e2Dr4xTLtVLY/aTgng X-OriginatorOrg: freescale.com Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP According to Documentation/CodingStyle: "The preferred form for passing a size of a struct is the following: p = kmalloc(sizeof(*p), ...);" , so do as suggested. Signed-off-by: Fabio Estevam --- drivers/input/touchscreen/imx6ul_tsc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/imx6ul_tsc.c b/drivers/input/touchscreen/imx6ul_tsc.c index 4957d8b..67c73f2 100644 --- a/drivers/input/touchscreen/imx6ul_tsc.c +++ b/drivers/input/touchscreen/imx6ul_tsc.c @@ -347,7 +347,7 @@ static int imx6ul_tsc_probe(struct platform_device *pdev) int tsc_irq; int adc_irq; - tsc = devm_kzalloc(&pdev->dev, sizeof(struct imx6ul_tsc), GFP_KERNEL); + tsc = devm_kzalloc(&pdev->dev, sizeof(*tsc), GFP_KERNEL); if (!tsc) return -ENOMEM;