Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp13252060pxu; Sun, 3 Jan 2021 07:39:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJzO3ZRTEQxY/ygzJH/yQRVe4LCnOmfkP4R5Z+ICe2mFsRUOitc5bFBmNhSzP/tzjHoZEt+H X-Received: by 2002:aa7:d99a:: with SMTP id u26mr68584270eds.32.1609688399422; Sun, 03 Jan 2021 07:39:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609688399; cv=none; d=google.com; s=arc-20160816; b=ODsEj0Ddg0tnFJ/cCnjD0U0G2FSRt1c5j6E62MCCpugLLh5kLQ8X1y4I9gzR1ufmXA zxRu80W3P2Ycp8sKUKy3EtENXiNaZZnrrj6Ugas9c4mLNpYrP/Gc5YiUAHaDa6zCXktF YrCuTdmukIlA840pE/MjoECHu5bepzkaon1SR92+dQvJFggGvekvzybA1NQV2zW1FzxK xHE0xxh7g/opRFWhmIjSbjpBqTkipXf0bLPfYPVuc3CeZQVABI3U+ePXFe5rYt0xtaCr lJLtAu1fu2acwJm6dj4ptX/27vr7FOqyiNdZRqOC+jxwU4mc3Z84OqEv1O2tTAlNai+7 tQ9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=CKbkg9XEl5Cdq3/4L/h6uPiBAUaQfHC57itqiZ9bJr0=; b=Ke3gxntxyady6xk5xWnYoePp7Kfx+NL75CHdMOq1gbz9OVwlIyRG+u0mNkc04mSAKi eSnSJ8O5zKq1qnF2qQdjAS2tHhTWzcBUVyFKMec82eIjgOdz6srF2yHb8UECXvSch2is Teg3kupMQFqSE+RBs3vCJlvkFEIvLQ/+bgZ5u1MKodX1ndRPeIUYwKO9nz/zS6XEp7lb a6h6zixBZtc6VcAmXHZQZLnkl/GD9wyQjHeQVfKaK4EBFYnlB9Rnw17ICQHnms5Ezx5L dxGX1KjvX2RdgtXltKq65DDNcjLi5n67+z0napgFxkGZQehfSInebD4wyKwMAyoiU5pk z50Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=u+iMP0CX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r23si30465297edw.310.2021.01.03.07.39.36; Sun, 03 Jan 2021 07:39:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=u+iMP0CX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727098AbhACP30 (ORCPT + 99 others); Sun, 3 Jan 2021 10:29:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726949AbhACP3Z (ORCPT ); Sun, 3 Jan 2021 10:29:25 -0500 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 399D4C0613C1 for ; Sun, 3 Jan 2021 07:28:45 -0800 (PST) Received: by mail-ed1-x52f.google.com with SMTP id cm17so24647062edb.4 for ; Sun, 03 Jan 2021 07:28:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=CKbkg9XEl5Cdq3/4L/h6uPiBAUaQfHC57itqiZ9bJr0=; b=u+iMP0CXalv9utqd5ZD2+mn8twLDr3xzPi8vmIWcFXVI+sfdbcLrGk3gUc1C89iS7T 2Zwu/jxux3tiVrKXUQ/RAG860Rho3AuyWkGp/gJTdUvHngpeKSqAjSIkMfhUrEpLDSxJ wQw2xMREbkj/lMvBZiUCkwM9LfOfggI+umT7uAOXPhEfcRdKVNS8Mp9g4r1hNM+0+eFH FOcfRvVkWnL5yY923moEFO7K7rw4QSFYpwNuN2OgCmh49C3Rqpry01X38sRNo18M2Nqw rx1XHAuH0i6V/CO3ke+WTFtt/5KBDgSgT40wFTmbqo/bwLPB0KljSGSSX5IqhXCL5cH/ naJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=CKbkg9XEl5Cdq3/4L/h6uPiBAUaQfHC57itqiZ9bJr0=; b=A0pTMTOl8d9dJWVnCa+xoMXnBgW1FepgdKvSakFjUtk6vl3Yhxr96XpiWDEJSnnuaQ n2j82Oe2lVt+A/6wSFAjwcTq2ByM4qogVWtOaaoXaeskBbR9ZRh3MYfrsQVq+clBMSdB GkQK7EsEc0FxcJhaL/+f42eqXHNzpB4DrlgtPOn31Dy+XqRsa5X/tCB6k5wanIbPVuzR k1EYQAzL1swxRNIx3KTPp8EWms5mqxzkRDmQ0tfF0HGpfoD9GM+zxa+w311xxNcU0IUE zJspkZtzbKXP5p6FIh1STxNYUwC/8A8csSVP2A7fBMqoAXVYuf5ZwpUudeJkha7e592/ Kuzw== X-Gm-Message-State: AOAM531bWW+ND7rlVb0nJllXnGxktinXhLcmy1K2zOeyItbGlbedb+UA Trcp/Nz77zeT+eFPbf+smbRouXjs/rPO3WfFA5Onr4i0t6Q= X-Received: by 2002:a50:bac4:: with SMTP id x62mr66180717ede.59.1609687723765; Sun, 03 Jan 2021 07:28:43 -0800 (PST) MIME-Version: 1.0 References: <20210101204325.998256-1-j.neuschaefer@gmx.net> In-Reply-To: <20210101204325.998256-1-j.neuschaefer@gmx.net> From: Bartosz Golaszewski Date: Sun, 3 Jan 2021 16:28:32 +0100 Message-ID: Subject: Re: [PATCH] docs: gpio: intro: Improve HTML formatting To: =?UTF-8?Q?Jonathan_Neusch=C3=A4fer?= Cc: linux-doc , Linus Walleij , Jonathan Corbet , linux-gpio , LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 1, 2021 at 9:43 PM Jonathan Neusch=C3=A4fer wrote: > > Currently the HTML output for Documentation/driver-api/gpio/intro.rst > doesn't look right. The lines that start with LOW or HIGH are formatted > in bold, while the next line after each is not bold. > > With this patch, the HTML looks better. > > Signed-off-by: Jonathan Neusch=C3=A4fer > --- > Documentation/driver-api/gpio/intro.rst | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/Documentation/driver-api/gpio/intro.rst b/Documentation/driv= er-api/gpio/intro.rst > index 74591489d0b55..94dd7185e76eb 100644 > --- a/Documentation/driver-api/gpio/intro.rst > +++ b/Documentation/driver-api/gpio/intro.rst > @@ -106,11 +106,11 @@ don't. When you need open drain signaling but your = hardware doesn't directly > support it, there's a common idiom you can use to emulate it with any GP= IO pin > that can be used as either an input or an output: > > - LOW: gpiod_direction_output(gpio, 0) ... this drives the signal and ov= errides > - the pullup. > + **LOW**: ``gpiod_direction_output(gpio, 0)`` ... this drives the signal= and > + overrides the pullup. > > - HIGH: gpiod_direction_input(gpio) ... this turns off the output, so the= pullup > - (or some other device) controls the signal. > + **HIGH**: ``gpiod_direction_input(gpio)`` ... this turns off the output= , so > + the pullup (or some other device) controls the signal. > > The same logic can be applied to emulate open source signaling, by drivi= ng the > high signal and configuring the GPIO as input for low. This open drain/o= pen > -- > 2.29.2 > Applied, thanks! Bartosz