From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D504D30F7F0 for ; Tue, 3 Feb 2026 15:05:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770131107; cv=none; b=IE3MdA1TyiM1IAjlY58ZR3S7Fnmazl7UcrE6eTauAZDyKko3MEDBkj5yWaIt3hvIK5ymaIYIWW7C5oovNezqOBBToJdvir919QcnXbRL2FXtZB/7jbgYkaZLBXf5OsG4H3GpgktZrf/bXXz+BMDZ36sHfJ8qWi6C+y3Ql40DHaM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770131107; c=relaxed/simple; bh=dwdID4DDF4GDX1SlmcA+3fzCA+ycXbc62Ld/klzXumU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HLWSMQiI96JkxPqNQ3udtTkueHKwAlNv97HHVnKbEBoCidkF2Q15EUQrJVlTbUCzxdXBYVXgNAFm2Red8T1Y/8S/iws9zo7a3t6EOEz8u0CPutITTv9GTGfH61K5asIFziQRABEw802z9bdC2yY2InHBI8qMCn+iOSPHdN/9s/Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=QpSyuDXo; arc=none smtp.client-ip=209.85.218.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="QpSyuDXo" Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-b883787268fso825294466b.3 for ; Tue, 03 Feb 2026 07:05:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1770131104; x=1770735904; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=9PNsfQXg9zjxapzMuZRa/zLzG4m46Jh75ILxmkVsiiI=; b=QpSyuDXo4abof9JkO71XCU0L++sL4W1+wPJrJo7W48kuy7WOXHhZrQZj7eTlkvPt/r 3EF48KIYISJTJf0dVDzcU03GLcWVwnutn/ZqKxcZWAIvyGfGJbH3OQmEC9zHKVx/3eIv 1uTifqNKiZLo622FwwQET8TQ9CzNqaLQbpqlEcTxtTxdcXJpFnpeRmlk+U9QiLi9D9x4 4SSHT3da5CfLVETraR88yINgZJ8QN233j/EuMTgUZme3bzkTwEAgE896M2Wge2tCYmS/ 9zB7LE7l7vP30fslwT/TUHL8yBp84Ub2EbiZOUWsX6FuvpJiKF3eF8Aavz8x1Ey8WR1o P/bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770131104; x=1770735904; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9PNsfQXg9zjxapzMuZRa/zLzG4m46Jh75ILxmkVsiiI=; b=eTmrdzvCyBC1sgwG7HQUHumm20//dXBmBVX3L4Y8nXn9nLyNfB4nC2tmZ8SyeTe9nX wBaESU9V0ukzaNYrdCZCAyl0pXrbLJfYcobliwsAjgnUZcmaqwN8APjnYkbc8peDij/g t6Q4mRtC9Nq6+u5uutEOl0ms6lCGa1LKNBLLJCZtZkd7K/UQAfr+RN6rRyAP7hqbLwTA ZlxdQUJQnYeqDWWBStY5VmYQ1jpqC8t2NMRa2TY82goY0qHFJ5E2A10C/K3Mb7TENves Cn6nCapAmkQmvmLdVsTCwwRrE68UGbx9QKcN0rdAaGwFO74ZHx3rkcaWqLErJJC+A2jL wP6w== X-Forwarded-Encrypted: i=1; AJvYcCU6ryzuY74d2vtfvNR1oYriWhJLolu4XPjR4eikLl/Z2D4WHKUtSfYi1+M82T6e8ad99fAmPuDgIT8=@vger.kernel.org X-Gm-Message-State: AOJu0YwPDIQ2qWU31hz35nLk+t4Yo1i8W5BQT/6PUOdy2BGpgwdUzVEf Gdfo7iJpZKjZgPNA/0Ivp/aGhqRPzf3ZctTy34iJrf4s8bynkzW+biM1ELp9RbynUFI= X-Gm-Gg: AZuq6aKOMuyAz2cObjM+Tq/3DcxOCZVbfsYoWy22pV51scOAAzqOK+HTBxfp8DNpE9z kOD2OUha28aUAT+q17jJXVdL/ARikCoRVpkm3bXvx+bKVQu5jnBinIPQNMQrIB7UNetyMIMCccU Zq/g0yxSL1+9yk2trP0c7KQwAACQsxTuCosxJD/cW63yWZjIp83vnOQXihmT9eeVYavYntouS7W fOPL2UWHI6woQ6+K4FfB4cTeCP/iUadJdMMfMwfZcJWDkb00XMYMJXVxlLc6SDP+ni640RjKK+N DSLScn2tQ1lxPvkyib8+3p6khNRgQOB89X319L2t54TvaZbFPp6izJiGwKQqg15OV0PEEJ26KBU GdWpBvJrjedq72muQR8SwuCVY5lY05nWYKnp5Z23eYPgJMCVNU2/3R2VNxhdln6VjCUg+fyny8u 9TyIiIjnf8p0sQpZP+ X-Received: by 2002:a17:907:96a8:b0:b87:65c5:602f with SMTP id a640c23a62f3a-b8dff7a30a8mr1000149366b.34.1770131104069; Tue, 03 Feb 2026 07:05:04 -0800 (PST) Received: from localhost ([196.207.164.177]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b8dbf2ed6f8sm1049398466b.65.2026.02.03.07.05.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Feb 2026 07:05:03 -0800 (PST) Date: Tue, 3 Feb 2026 18:05:00 +0300 From: Dan Carpenter To: Josua Mayer Cc: Marc Kleine-Budde , Vincent Mailhol , Vinod Koul , Neil Armstrong , Peter Rosin , Aaro Koskinen , Andreas Kemnade , Kevin Hilman , Roger Quadros , Tony Lindgren , Janusz Krzysztofik , Vignesh R , Andi Shyti , Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Magnus Damm , Wolfram Sang , Yazan Shhady , Jon Nettleton , Mikhail Anikin , linux-can@vger.kernel.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-i2c@vger.kernel.org, linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org Subject: Re: [PATCH v7 2/7] mux: Add helper functions for getting optional and selected mux-state Message-ID: References: <20260128-rz-sdio-mux-v7-0-92ebb6da0df8@solid-run.com> <20260128-rz-sdio-mux-v7-2-92ebb6da0df8@solid-run.com> Precedence: bulk X-Mailing-List: linux-i2c@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260128-rz-sdio-mux-v7-2-92ebb6da0df8@solid-run.com> Sorry about that, I just looked at the implementation in linux-next and didn't read the code from the patch too closely. On Wed, Jan 28, 2026 at 04:46:10PM +0200, Josua Mayer wrote: > +/** > + * mux_control_get_optional() - Get the optional mux-control for a device. > + * @dev: The device that needs a mux-control. > + * @mux_name: The name identifying the mux-control. > + * > + * Return: A pointer to the mux-control, an ERR_PTR with a negative errno. I wish the documentation for these "optional" said it could return NULL. > + */ > +struct mux_control *mux_control_get_optional(struct device *dev, const char *mux_name) > +{ > + return mux_get(dev, mux_name, NULL, true); > +} > +EXPORT_SYMBOL_GPL(mux_control_get_optional); > + regards, dan carpenter