From patchwork Tue Aug 31 10:29:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Brunner X-Patchwork-Id: 504781 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0D16FC432BE for ; Tue, 31 Aug 2021 10:29:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E98C060F42 for ; Tue, 31 Aug 2021 10:29:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240967AbhHaKaf (ORCPT ); Tue, 31 Aug 2021 06:30:35 -0400 Received: from mail-am6eur05on2134.outbound.protection.outlook.com ([40.107.22.134]:37729 "EHLO EUR05-AM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S240926AbhHaKad (ORCPT ); Tue, 31 Aug 2021 06:30:33 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WrQ5hhOoqGWSmY5vR0fyTCPUUbnAhjwzXkwgXP5TDeVBsyjmv3AmCmMAs9Uf+Mo4tP8sfIMLihKPGHzlEOgOUl09uGMajI/Xy86l/XVVjkPiaJKWLAp7jjsmhGtuy7Ps2xSrEwA1NmjU/Qa0kIEpOvWgB508ZOZ3SaVnkFc9W6liTFZTWR6kq6kUL6GJZ4zAJq6xZdrQeoHAoQQr8CaElgIfx4sNYlIvlerTXhbmxRdmhi59ENU4CQH3ORdgsa5jm1BRwfLJVxrG1qqYgcC6MBUuLndE8QWJyOw1Qo5VljcGiGhf7cw3lYAjIqdR1RXKNfg7ucLMrU0EEU8tsVlOUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vYl4jqXEihz8y78y9NSKaYNhbupYOaKdfw4920zIS3Y=; b=Nk+dKKV/RMHGECrnHOKDQDrD1peq7aA0PxImkVUqpQYn/lLXDRD653dfAwbzUuxuMiwVRdQAW31Xmcj0YMNvxz/BeqZPoSkwbb5R2shGXYXpSPwZY9BKoMzjvWHTVnLNQCV6efHbrxiCKj1RgRCK/4bAiSj7QXfokRp6NWppKnDrqESYWK6Dux/4nx9wAtSP5JgA1xnW4jktJVSIt26sMFf8TmQFBE7aIEtAW/YeIUUKLIv7AjDO06CyzUfdEUdhhE53TuuNI2OuvC3m5dMjp9yq+p0Dr2rOcOhfe4sHJlUk77625jqxBGpxq+LEHEmQTuxPVvkmFRuFTk0wPLcjyg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=kontron.com; dmarc=pass action=none header.from=kontron.com; dkim=pass header.d=kontron.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mysnt.onmicrosoft.com; s=selector2-mysnt-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vYl4jqXEihz8y78y9NSKaYNhbupYOaKdfw4920zIS3Y=; b=KuioptXNjZUooSS+hO+W8A6CfnmHprNcrHuXoX+TfEiRsLhH4VKN3yTUoZNhbC0gKgBEoKxwVWaLkpw2GCQI58rTtHvmGXe8m4L1UkTR1VdDn6j3lPJX+oUO+UxiguqGnuXY10GzAqPf8nZxb20lWAltnz9GHJyvaRfZALKsdjE= Received: from AM7PR10MB3764.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:14d::15) by AM5PR1001MB0961.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:203:10::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.23; Tue, 31 Aug 2021 10:29:36 +0000 Received: from AM7PR10MB3764.EURPRD10.PROD.OUTLOOK.COM ([fe80::85c8:246:48a1:5eb1]) by AM7PR10MB3764.EURPRD10.PROD.OUTLOOK.COM ([fe80::85c8:246:48a1:5eb1%4]) with mapi id 15.20.4457.024; Tue, 31 Aug 2021 10:29:36 +0000 From: Michael Brunner To: "wsa@kernel.org" CC: "linux@roeck-us.net" , "sameo@linux.intel.com" , "mibru@gmx.de" , "linux-i2c@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Ingmar Klein Subject: [PATCH] i2c: i2c-kempld: deprecate class based instantiation Thread-Topic: [PATCH] i2c: i2c-kempld: deprecate class based instantiation Thread-Index: AQHXnlMYhhdxATqY2U+tvwplY1GLWg== Date: Tue, 31 Aug 2021 10:29:36 +0000 Message-ID: <823bd555e13a3c62be199d4e23c352a5535aad85.camel@kontron.com> Accept-Language: de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Evolution 3.36.5-0ubuntu1 authentication-results: kernel.org; dkim=none (message not signed) header.d=none; kernel.org; dmarc=none action=none header.from=kontron.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 3c5f32ea-e6a3-49d4-7acb-08d96c6a3b36 x-ms-traffictypediagnostic: AM5PR1001MB0961: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4125; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: cUF6+sk/rhcn2SoyjntyALz9gXVn5kaRHNM3vVS+PoPeJWW4GlLxSohGy6P12v7qmmUKz2sgb1G9gym19RZA5sixF+bwaAdl0zKgxsaA7jf4ziN8dEyB6OIz0wO3yA/3Y+ZBsLuGk3ce8Refwzwyrpx1huzKBJ7Tjust8Aa3wz7GIgP1j1jaalnDyt8j1Kp6RwZZyKpvYlWA6pdmN/OBbICjfxlShLCcr+VUauM6x8vMco+N52GndP36XS8a2DFlpdVR559uW99Kjehaj2qJugJ5vcNi7xai0kNTbFo2ju+WpB36SzPObb46gK+rk9fW/LUQyZX7+y6DfyDMMYoDYiqjHdVR7dudyfyfXK0EkoMhIJCeHOnPrqKCOhHQO/S5EXuAP5OH+kj6ayNhfdR3RLV88M6MM5FDwgGVJ+OtDf6/Hby7r41QDVSocBnLOt/KKND989nqwbHbHVKcOXOm8YjlObGQlCN3n507Rpx+iU9nuSDCh7eDX6U57PFedQE2hYEZhgl5+iT6eHSVvQ/+Vmt6pSsiNop9e6hyVfw5cBvwLv/TMGr+VilYot85H0dzgkHkUg2DAbkPhVkLze0uucYI19vjRJDal5NW4UZJ2u+LiRdU5Al1pqxGPGaB7fGihrZL+0JNOF1kgcw6RE7XHAXFy7fE3apkylTk2m4ycqTFDAqOgpPCKU9N3iiDrtpkd/NjcumcUzHXB47o+JDvwA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM7PR10MB3764.EURPRD10.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(4636009)(346002)(396003)(366004)(376002)(136003)(39860400002)(38100700002)(6506007)(478600001)(8676002)(54906003)(71200400001)(122000001)(8936002)(6486002)(66476007)(6916009)(6512007)(26005)(38070700005)(186003)(316002)(4326008)(66556008)(66446008)(2616005)(76116006)(5660300002)(36756003)(2906002)(86362001)(4744005)(83380400001)(66946007)(64756008)(107886003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-15?q?ZW+F/iG1L/DCH7D9MPU?= =?iso-8859-15?q?5ihRfjScntP2fkD94DKobEGOlCsdDby4cnzPDEU2KncSVDhvKB?= =?iso-8859-15?q?3v/hcwN4tVCm6HhQIb7nAOTM6Y0Cn2QfObQjjSvQ0NAjCOU4Hw?= =?iso-8859-15?q?yJWWVFeHU51Yb6AmZJstkyhgMkJn4z4y6VxZRNaTN29kEvaCEJ?= =?iso-8859-15?q?3iqfVrpr4A0dmAy70TB0N8rheHC6C1WVRD4cPJCDpPoRL4KVXH?= =?iso-8859-15?q?qRXfJbWWdMen+wAW25FFJ4oR4Ed3HGPNvvqeaqpNFq5Wn2fQxS?= =?iso-8859-15?q?Y0RcrJsGBFmg7Aewjr+mpHcd949TD1UstM4Fi3jJzdFz9/0e5V?= =?iso-8859-15?q?9x9FDYeNQdqaJIKL77o6Jg4dWTjZxdIE7I/TgijBSCOhNHnXV+?= =?iso-8859-15?q?/HZdPULFBWeyyb/g3THMOyZp2VNaiJiCRYc9T+ehz2XdNZI3Jl?= =?iso-8859-15?q?l8+lIvCWcKRf6V6frfqyoVeLFpPia4hAKasrgkCLKqQo8JSKoH?= =?iso-8859-15?q?I8bdf4jw+uk5b2wBb0IpbXm62JX1ywXJtJxAvApEF0KVTVkz5T?= =?iso-8859-15?q?5QRbA2QNwx28u5vAfju6E++NNSj1ZJSgT6qZK6yPbt8MbjZ7Ek?= =?iso-8859-15?q?nYI+FH9yL0oka12Z1oiI+Gxjvu4RkLHw6lx2cL1HeGNqrUZWGS?= =?iso-8859-15?q?DbagnspfJmM12AkKxPWHvSoHuyrZWsHBFetFElnega2jcUcPD1?= =?iso-8859-15?q?sTJl/RZYB5IxVR2qCQYUJtHJ+MwQ8zQdLbFbnGAaZbt+pV9ROg?= =?iso-8859-15?q?hHB/O8KCuBSgRjPfu7pNsRBASlOFLtSTV6r48kavbbOA6hp1Fg?= =?iso-8859-15?q?y6e6ripjb3dR85rBrN3/S1PAFNEbmDssspxzxBUhxSXh09/2ia?= =?iso-8859-15?q?NAKq+DPIVsf3PJA886z3SknmXB3KlhUpy2BEQLzJuhoESQc7Hs?= =?iso-8859-15?q?PHwoh557pMvcpcHxCo29e7cRAyoDSuhsq468fm0JMxMc8Ci8Nl?= =?iso-8859-15?q?RzJeLGq8Ml01fulHfZk0QWDeemLs+flxQvFT4CKi0GCqaub9Ca?= =?iso-8859-15?q?OxeW3FAkcgQcWiQqEYWC2b4Vt3tU9SojRLgPT1jZkBNsfaznZb?= =?iso-8859-15?q?GN1tWs42aBOQnjxuS+0tgnZaaXbZEhdBlt/2ktVpbnsYE4S63/?= =?iso-8859-15?q?nsDkytkz3vqxUeNfdFHS9BZKp/5URFwcuOe5lhoPQ4+eCgSqZo?= =?iso-8859-15?q?xgL8FZRtGFLk01mAhnGzMG1zWemxbwopfyoOHiKv3SX99gilrM?= =?iso-8859-15?q?xYDqnKjs08HXCSt7t+d9nOYY7mo7jusMignDBDK+o19fkMD2/M?= =?iso-8859-15?q?KPz3Ao/aw0DATItsHeZmf6a+oGOAMqUy94Y2L5gwYQzHyilRhz?= =?iso-8859-15?q?vygnMD/3F0bmW5IaA0nSLc7VEF7CzZ0TuHD7SsN4hQqnWeTsyX?= =?iso-8859-15?q?TnFb0EaBAofxfvkCHRIOwY7w4cs6QtVe10c69Q+KDD9uvmw=3D?= =?iso-8859-15?q?=3D?= Content-ID: <01D311189F2E1343B7644831DAA678C1@EURPRD10.PROD.OUTLOOK.COM> MIME-Version: 1.0 X-OriginatorOrg: kontron.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM7PR10MB3764.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 3c5f32ea-e6a3-49d4-7acb-08d96c6a3b36 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Aug 2021 10:29:36.4548 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 8c9d3c97-3fd9-41c8-a2b1-646f3942daf1 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: U9WCtK9g+v6ng0WSRzjqJwutbhIAPgqfhb9UP0eSBQuYUTWOi7Hlr9ZXYKDAKWAQatwY2rtqtg0wYCIsjAq43d1FCKQg+n+A9t3aEXKPKUE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR1001MB0961 Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org Warn users that class based instantiation is going away soon in favour of more robust probing and faster bootup times. Class based instantiation has already been removed for other controllers and it makes absolutely sense to do it for this one too. Signed-off-by: Michael Brunner Acked-by: Ingmar Klein --- drivers/i2c/busses/i2c-kempld.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-kempld.c b/drivers/i2c/busses/i2c-kempld.c index 2d60be086b1a..5bbb7f0d7852 100644 --- a/drivers/i2c/busses/i2c-kempld.c +++ b/drivers/i2c/busses/i2c-kempld.c @@ -283,7 +283,8 @@ static const struct i2c_algorithm kempld_i2c_algorithm = { static const struct i2c_adapter kempld_i2c_adapter = { .owner = THIS_MODULE, .name = "i2c-kempld", - .class = I2C_CLASS_HWMON | I2C_CLASS_SPD, + .class = I2C_CLASS_HWMON | I2C_CLASS_SPD | + I2C_CLASS_DEPRECATED, .algo = &kempld_i2c_algorithm, };