Received: by 2002:a05:7412:a9a8:b0:f9:92ae:e617 with SMTP id o40csp14846rdh; Wed, 20 Dec 2023 14:22:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IF41x5QMULaEAR9d0aLqz0smW/31CYDt6GS3PU3P+mv9j2sOd+l/8F+kv7D/tQ4kOJZb9S8 X-Received: by 2002:a05:6e02:18ca:b0:35f:9838:b2f5 with SMTP id s10-20020a056e0218ca00b0035f9838b2f5mr11327911ilu.45.1703110964856; Wed, 20 Dec 2023 14:22:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703110964; cv=none; d=google.com; s=arc-20160816; b=FVq7JmVZfFAFas+r3NJBLCc9SY0r0vqyQQqxss09y7H8n2kfjZL5iRsLb0lWwX+6ZY cZAU+15XRTPkUTqI75Qz36zx5ROQt2oxZK4YXqPdppOKAJZB02Ya1OGmbUTSjqXZYCcJ guUD6psAYbGHD818o/DLWnEYU7Ngc/C9/Yc5km3dCxCX42sU0OESo96If0P/wA220qx4 pTFIdv/Z0MQ5mWlC4kRKTvW57TA3YANa5vKNrwQ3yopaMJG1Bk3yMeeT5D6C7hSXJgny vL9644cGfKVFyFt56mDsD+u3Jr+Wr6IazOKaIeEXmP9pWnm2fbd7Is37VWMzQB5dRloo 0P0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :cc:to:from:date:dkim-signature; bh=pnRhjiZcbdO1KLXw23tApj7CFwqY1eJ1CqhdvhHcuFs=; fh=q4SeHTsadHtmxufK19aRSb/y/7ZF2h1w6blGJEQRsR8=; b=j4Mmub/Y+VJmx/xRDPae7vz5hZsXbpH14aQxwZNhdewsPfDYGukQ4SkNBz9ZZump45 I4bAKWNR7B35MB9U+HGKi2Wh5TBOL2FQJu6NCYIUO+hxTWZrr38jDEuW3/wQf07/r0wH zk5nK9DhxmtzCAErhuoYit9fsEd/cYl9b9VBYfNRXNvBTKlTom/kAoEfR71CES/N5mIo YClJJfT2mCNQpzwd4PDtpUPfOGoIFgkpHZAPXQ2KYTzw6orvdGkjU/iJSdj9Z9JcDA8e pl+Hbn1nhea/GlXxrtpfRQc0ENuXd3e1BfNgiFudjURUs1krWAjk5QvbfiL8oBO79jsL XLcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hugovil.com header.s=x header.b=sBeZGPLI; spf=pass (google.com: domain of linux-kernel+bounces-7506-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7506-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id o27-20020a63921b000000b005c6650f66b5si426098pgd.267.2023.12.20.14.22.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 14:22:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7506-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@hugovil.com header.s=x header.b=sBeZGPLI; spf=pass (google.com: domain of linux-kernel+bounces-7506-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7506-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 798F028DB47 for ; Wed, 20 Dec 2023 22:22:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 583614A99A; Wed, 20 Dec 2023 22:22:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=hugovil.com header.i=@hugovil.com header.b="sBeZGPLI" X-Original-To: linux-kernel@vger.kernel.org Received: from mail.hugovil.com (mail.hugovil.com [162.243.120.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 247F622073; Wed, 20 Dec 2023 22:22:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hugovil.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hugovil.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=hugovil.com ; s=x; h=Subject:Content-Transfer-Encoding:Mime-Version:Message-Id:Cc:To:From :Date:subject:date:message-id:reply-to; bh=pnRhjiZcbdO1KLXw23tApj7CFwqY1eJ1CqhdvhHcuFs=; b=sBeZGPLIOEfeC7qeU3Qb6s6JKo dMDmZ/+Np+64Rs9V6UD5EtX0LwVPexKa8BO5rTEcBuoHF1rn7o91w9CCIdCP1kMK0+ahEtrtOYiFt 74xvtC4MWndES8Lrx00zYC67iAVpkZDz7FhO/S0ElqKSx4/vmK+fnn3zbsV3CrL5oePA=; Received: from modemcable168.174-80-70.mc.videotron.ca ([70.80.174.168]:56224 helo=pettiford) by mail.hugovil.com with esmtpa (Exim 4.92) (envelope-from ) id 1rG4xH-00036T-2D; Wed, 20 Dec 2023 17:22:19 -0500 Date: Wed, 20 Dec 2023 17:22:18 -0500 From: Hugo Villeneuve To: Andy Shevchenko Cc: gregkh@linuxfoundation.org, jirislaby@kernel.org, jringle@gridpoint.com, kubakici@wp.pl, phil@raspberrypi.org, bo.svangard@embeddedart.se, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Hugo Villeneuve Message-Id: <20231220172218.a81bf81bdf502100589dd0b6@hugovil.com> In-Reply-To: References: <20231219171903.3530985-1-hugo@hugovil.com> <20231219171903.3530985-7-hugo@hugovil.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 70.80.174.168 X-SA-Exim-Mail-From: hugo@hugovil.com X-Spam-Level: X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * -0.0 T_SCC_BODY_TEXT_LINE No description available. * -1.4 NICE_REPLY_A Looks like a legit reply (A) Subject: Re: [PATCH 06/18] serial: sc16is7xx: use spi_get_device_match_data() X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on mail.hugovil.com) On Wed, 20 Dec 2023 17:44:52 +0200 Andy Shevchenko wrote: > On Tue, Dec 19, 2023 at 12:18:50PM -0500, Hugo Villeneuve wrote: > > From: Hugo Villeneuve > > > > Use preferred spi_get_device_match_data() instead of > > device_get_match_data() and spi_get_device_id() to get the driver match > > data. > > ... > > > + devtype = (struct sc16is7xx_devtype *)spi_get_device_match_data(spi); > > Nice one, but drop the casting. (Yes, make sure the assignee is const. It might > require an additional change.) Done, devtype was already const. > > > + if (!devtype) { > > + dev_err(&spi->dev, "Failed to match device\n"); > > + return -ENODEV; > > return dev_err_probe(...); > > ? Yes, done for V2. Also done the same two changes for the I2C part. Hugo.