Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2571089ybv; Fri, 14 Feb 2020 22:22:22 -0800 (PST) X-Google-Smtp-Source: APXvYqxSHmU6JYC1fAzzGJI8CCcXGBBCNfH+AidStiLgnSBVAdPFroXd+VKlOzD8bYtk7CKsRF0W X-Received: by 2002:a9d:32f:: with SMTP id 44mr4933313otv.234.1581747742737; Fri, 14 Feb 2020 22:22:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581747742; cv=none; d=google.com; s=arc-20160816; b=0PXrL3lmlZ/Otw0SJwEKII5x4W7amMcbJCoLfvgixb9RRv8evStR0503CTpd04Md0e KrzZVkYOeY2mKt3jGoE8JwBDqoJ4VRYS9/aFT+kXe/DcMIvCgyaeg0t0kk3s5Ln7zO1L hJUIryCE4w514l6ElcHuPbjbTyuHeLIAVk+CkxVOmYTg4m/vbmi8OovBmKuNftwQS34g s6370Dm/IWR1SDRL3+V5pSPYeKc6dtS2h0hmEPtH6eSQgZQPeTM2qFBuVk1Uuald4U6+ mRy/9PZKaRFdpUnYUFwpJUek8tAHEhz2WmcfanYT5XyUDNk+fhVi4jeFdpICjXCyDAD6 vuvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=szchFICNLocOkss9wvd5EFrxNIrjuu+KiJE53anBQxQ=; b=QONl4sZYjfqbhX44OoDoFmp2we9hxpleASd4i3LfZnNhn8wM0F2VR9QOr+f4fqqPYO k4zl8unBFlLQIMiXlFOinwqvFBL2cG+D1MMyWqNPwe6taygQUKAfhCgS5txg1f2xJUGl 7GO5NOmPOsPa2HiKDrYc+aV3REE1PPS6/3H8V4TnJaIjbud1eW1X+g35vQ0ZwAs3EJ5N GgQt+e2x1PfKmg8C/7hQvp0JX+hIY2ylrmE8qsP9lJOVSLaYuiWgv5N15vxxfRrZ6QYK ghGuBGn4TWlN6q0OQBu8STNfkGeKEMPfYw9i726XRlpogZtdcYK8V3gUwUncCwP/YMoV BkuQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c22si4072400otr.97.2020.02.14.22.22.10; Fri, 14 Feb 2020 22:22:22 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726090AbgBOGUq (ORCPT + 99 others); Sat, 15 Feb 2020 01:20:46 -0500 Received: from mx2.suse.de ([195.135.220.15]:48082 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725795AbgBOGUq (ORCPT ); Sat, 15 Feb 2020 01:20:46 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id F2C53B27F; Sat, 15 Feb 2020 06:20:43 +0000 (UTC) Date: Sat, 15 Feb 2020 07:20:20 +0100 From: Jean Delvare To: Wolfram Sang Cc: , Benjamin Tissoires , Phil Reid , Wolfram Sang , Robert Richter , George Cherian , Subject: Re: [PATCH 1/3] i2c: convert SMBus alert setup function to return an ERRPTR Message-ID: <20200215072020.75b1b772@endymion> In-Reply-To: <20200210172929.6001-2-wsa+renesas@sang-engineering.com> References: <20200210172929.6001-1-wsa+renesas@sang-engineering.com> <20200210172929.6001-2-wsa+renesas@sang-engineering.com> Organization: SUSE Linux X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Wolfram, On Mon, 10 Feb 2020 18:29:25 +0100, Wolfram Sang wrote: > Only few drivers use this call, so drivers and I2C core are converted at > once with this patch. By simply using i2c_new_client_device() instead of > i2c_new_device(), we easily can return an ERRPTR for this function as > well. To make out of tree users aware that something changed, the > function is renamed to i2c_install_smbus_alert(). I wouldn't bother renaming the function. Chances that there actually are out-of-tree users of this function are pretty small, and if that is the case, they can adjust their code easily in a way that is still compatible with old kernels. -- Jean Delvare SUSE L3 Support