Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3744918yba; Tue, 16 Apr 2019 19:00:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqxeR4U+jGrGQEbHCwXCgUCmQKpMNFYrMjQc8nRhAUD2ZS3sKIn69lr+mQp9dlr9ufaDtq+E X-Received: by 2002:a17:902:e7:: with SMTP id a94mr86021487pla.114.1555466442898; Tue, 16 Apr 2019 19:00:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555466442; cv=none; d=google.com; s=arc-20160816; b=N34sNSzvEGYZR5EfP00R2JQa06hSiRn5UVj9Ud6srMfBr6SKNcx1aH4E2mJwlE9qQ4 G5/pQ+NkpAK8GhW27e0Sf9D7ibDkMpzI2eLABTxVZWBJOGSyBV5Nj8nHff8bYiwJN4Xk u+avP/uWqhr3pU6m8fr5kHCmEtqhvgjL56/iHyC6j/gxQTdnzmYucuuvQlhcPhHZ4bfn mwkqyvNfUF/dGCW7oeEcivZh+7yvOWbBboVE8gNXCq8fiLR7/seVtdEfDwSmlAU9Aenw S5kr4s8qs2Chvklw1xN8NBMszivZa9bxBpIMLphJ4/r3vLJEZFwPPjddcC6lZJW0XeYp M+Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=Dor289mWnJBgnR7CjoOhvm6MkCbW7lBLeKal0S3i5DE=; b=Hg+ayCWljOedVHGU4IVzflkrBuKsa1yYtJOzkziF9Bx4QsVkK6eRtmTRYxFAr0pjPu pMPuhQB87ceTfoYV6jfzc/2v4GIaAVqz9xtuqD0WSxx+QhDCyeTketsQgxbIHp3t6cJO u6vCR2dG/yNknUfSD09VnJZlQQdViYwvqxh9pWvdiW17w83AX+qI8+IU/GjllFd4qchO rZB+067cWecNWpfsaQSPfrIu/MyN0/mHBl4eNcFiFsHidV4gEV9eGnbl0rwQbmboRgm4 ofkuQVNjjkHnS5V4vVhpahngqdw74SCI2BkQNTaAAcyLkR1NVsAhV/HMvdra3pCjgQGf Cdjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=HyAO54M7; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q22si42965004pll.365.2019.04.16.19.00.26; Tue, 16 Apr 2019 19:00:42 -0700 (PDT) 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; dkim=pass header.i=@nxp.com header.s=selector1 header.b=HyAO54M7; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729990AbfDQB7k (ORCPT + 99 others); Tue, 16 Apr 2019 21:59:40 -0400 Received: from mail-eopbgr30085.outbound.protection.outlook.com ([40.107.3.85]:26155 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728032AbfDQB7k (ORCPT ); Tue, 16 Apr 2019 21:59:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Dor289mWnJBgnR7CjoOhvm6MkCbW7lBLeKal0S3i5DE=; b=HyAO54M7riILKQHKjROI41CmxB23zzDnYVqzPggBLSJwPH/GrIWKL71rEJFMgTltIbhQHEjCyw5dXDSa33yl8NX7INYk0qYnV6sf54Xw+Vm7PBt3xEyyQk9zTnSzzSXoNO/alPwonzo1WrnSimoqucMjHk+qNxoSCX+tM8tJMo0= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3739.eurprd04.prod.outlook.com (52.134.67.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1792.15; Wed, 17 Apr 2019 01:59:34 +0000 Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::e8ca:4f6b:e43:c170]) by DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::e8ca:4f6b:e43:c170%3]) with mapi id 15.20.1813.011; Wed, 17 Apr 2019 01:59:34 +0000 From: Anson Huang To: "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "wsa+renesas@sang-engineering.com" , "u.kleine-koenig@pengutronix.de" , "eha@deif.com" , "linux@rempel-privat.de" , "mojha@codeaurora.org" , Laurentiu Tudor , "peda@axentia.se" , "linux-i2c@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" CC: dl-linux-imx Subject: [PATCH] i2c: imx: correct the method of getting private data in notifier_call Thread-Topic: [PATCH] i2c: imx: correct the method of getting private data in notifier_call Thread-Index: AQHU9ME0meJbs59NTkCxa+Er7M94Gw== Date: Wed, 17 Apr 2019 01:59:34 +0000 Message-ID: <1555466064-27984-1-git-send-email-Anson.Huang@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.7.4 x-clientproxiedby: HK2PR02CA0180.apcprd02.prod.outlook.com (2603:1096:201:21::16) To DB3PR0402MB3916.eurprd04.prod.outlook.com (2603:10a6:8:10::18) authentication-results: spf=none (sender IP is ) smtp.mailfrom=anson.huang@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a3d905a1-e681-4f26-aeba-08d6c2d85698 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600140)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020);SRVR:DB3PR0402MB3739; x-ms-traffictypediagnostic: DB3PR0402MB3739: x-ld-processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr x-microsoft-antispam-prvs: x-forefront-prvs: 0010D93EFE x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(346002)(136003)(366004)(396003)(39860400002)(376002)(51234002)(189003)(199004)(81156014)(256004)(486006)(6512007)(4326008)(6486002)(5660300002)(8936002)(8676002)(7416002)(99286004)(2616005)(6436002)(110136005)(316002)(14454004)(102836004)(476003)(186003)(386003)(26005)(6506007)(50226002)(7736002)(81166006)(305945005)(68736007)(6116002)(36756003)(478600001)(2201001)(106356001)(53936002)(66066001)(105586002)(3846002)(71200400001)(86362001)(71190400001)(2501003)(25786009)(2906002)(97736004)(52116002)(14444005)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR0402MB3739;H:DB3PR0402MB3916.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: J4+sCAjqjluQR1ToRQxkCcmX+jQKnsq39+ltthxjtTZuOSQmQcqvEo/zcQ7ZC4Y4y/bUW9trAzkjjhwK/qKamS5uJIjU8k7FYZevh2TnZgMldR/vb7ogTy/sdGaIhqIeDECv/1H5ImD7S70t/nqASm8s8yQiOkZRK82xz9MEm1pIClOdCXn18tAbam2Hlm/lOMNA4Rqyn5CIqyhZ8/Xtz+RWEGGZJ/MSEE7W4iqGWsI8B17w2vLaIZyTnJjQtQzt8uyx+wtxQA6pxcmLqiaqHSX6v1kpnPw1gUehE15NlyDY2vOFp096BCKpCfNsehxgo65bS6I1RB6l/egkj+zmfPViWJVxsKS42tHcnhHba/1uV4SmnMsziv5DqeRO5S7RqF3Wv4L5YrS0Qd2cL6Z7Dvfe7HdO8wMeZmzgn4NlPLM= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a3d905a1-e681-4f26-aeba-08d6c2d85698 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Apr 2019 01:59:34.3476 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0402MB3739 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VGhlIHdheSBvZiBnZXR0aW5nIHByaXZhdGUgaW14X2kyY19zdHJ1Y3QgaW4gaTJjX2lteF9jbGtf bm90aWZpZXJfY2FsbCgpDQppcyBpbmNvcnJlY3QsIHNob3VsZCB1c2UgY2xrX2NoYW5nZV9uYiBl bGVtZW50IHRvIGdldCBjb3JyZWN0IGFkZHJlc3MNCmFuZCBhdm9pZCBiZWxvdyBrZXJuZWwgZHVt cCBkdXJpbmcgUE9TVF9SQVRFX0NIQU5HRSBub3RpZnkgYnkgY2xrDQpmcmFtZXdvcms6DQoNClVu YWJsZSB0byBoYW5kbGUga2VybmVsIHBhZ2luZyByZXF1ZXN0IGF0IHZpcnR1YWwgYWRkcmVzcyAw M2VmMTQ4OA0KcGdkID0gKHB0cnZhbCkNClswM2VmMTQ4OF0gKnBnZD0wMDAwMDAwMA0KSW50ZXJu YW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