Received: by 10.192.165.148 with SMTP id m20csp3445895imm; Mon, 23 Apr 2018 06:46:32 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+OHGPYSdF5BR3xU3nDMhYPB839Fg6Yl31zMJmOhyXE+HBINXh1CU3HNWmXXW2+q01707zu X-Received: by 10.101.72.68 with SMTP id i4mr16989074pgs.265.1524491192458; Mon, 23 Apr 2018 06:46:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524491192; cv=none; d=google.com; s=arc-20160816; b=s88p2fz0nIk0W6KFiCAUU5n3cIgULFnTFobNQLZtKlr82Qa5b/Fj2b2s5hnjdjYZSJ lrf5Rf6p8dfHrAgTbSlAp8MdMRVXTsEj/rGaCO6xOoJHZkxFy5L5CS4nW/GtgjB1S9Fh xBcil0oMTzeOnLiApPa/tsSHWjJKgYCOrWEKQbMUJ7ZKWGIGvyuQjOMm8WmTqDesfH3A dAaS+/5T6PYWZHYD/JqeNbBC6g7pKOkt+bPt8tlKFRSB2a1wml3hau1CFV9c642KgZgN IF+4iAyhDNJK2BcnWUvo/VG01x243vZR0Px7UV4EMwQ0Rk4Kz8YS1LmnToKlU+MF/Kdo bfMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=pzzHqIsWSDNY0JYhS9Jtyct42G6ZTgIbzIxLNFIpI6U=; b=QvWSl9/cE9d+08YbJVTM9Gwc8Fsev7ZpXRVtzGEXnxrwXWUPIwNP6Baw1nCmiqtdXm ox3oXLzM8NKpx317NUpx1TN6hvY+lRRB1AQNIcIOXC8sCtIOgPc16SeMmpAetmp9C07b VhUpMwWvIUiqB0JD4tMdRM0owlzyE70I557zTQ6oQ0nYFKSlAthpoDtjfYqEowOqBfk4 TzPRSy98dILj0LdPJaPHGwoHKOXIgACQsY20XP0fVhOu0hlsAPvimcI+St9PqTgVFWmP y+wYYeQkwM+ytwrSX3+7/y0PBMOA9r56dQEN1NzOuysxRhj04dWeHzhzkG3uSXEScOJf K4hQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=efY97ieH; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a17si10828814pff.43.2018.04.23.06.46.17; Mon, 23 Apr 2018 06:46:32 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=efY97ieH; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755194AbeDWNn5 (ORCPT + 99 others); Mon, 23 Apr 2018 09:43:57 -0400 Received: from mail-qk0-f176.google.com ([209.85.220.176]:43375 "EHLO mail-qk0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755010AbeDWNnz (ORCPT ); Mon, 23 Apr 2018 09:43:55 -0400 Received: by mail-qk0-f176.google.com with SMTP id v2so16157659qkh.10; Mon, 23 Apr 2018 06:43:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=pzzHqIsWSDNY0JYhS9Jtyct42G6ZTgIbzIxLNFIpI6U=; b=efY97ieHdqLWNYl0YCCddKUe2gQ8hTkWgNuMG7RmIWpwnWnDDZysHbUpJzVAeqTOjz Bm7MvF+p5LCPVFCPPU/Bb6SeghEkBwCZdDE2OXLfxqI/33OZPmAiS/9xfQlpv2ugEdZS TsnWmKSeA9vClqWnRMhJuxTGMGcC++oi1pfeI7j7XnC5kC1d4MMPmXCwEL4Px9eqhdKw PMQdvCnjmSYKh5GyeMw3f2c+tJ/eQ4+MkhaPpFPFnPajLYYlzprK6z2ifxjwcEpMGN49 eFg+IxcCze07KUK30lzY0EMQgQLj7/+XRj8wSIWZZBVHwJqbYTUuk7vFQ3Q28lV2xG7K P10Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=pzzHqIsWSDNY0JYhS9Jtyct42G6ZTgIbzIxLNFIpI6U=; b=I0yoofoivDzVxP6KEYQwukX4guWOClwlxDNvAL/nRhNQ8T+q6xQ7wx2/ZjgiMU6JlI XoIUdj4WV0UEYC0DTw7o2HtSokZ78Q1+N2OjOQyhFrwNhOBHFl3qWJG0qVRUNGri+atw 4+vtDvjGSTTZiCtqV4uvggQoAsi7Fwtx+qUQCp+NyU1taEXsEVwgQrxza5Tmfml6Zq+K vPfUvENJ+NOmcHMvYDAT/pQ/eGMBl5yr1KNwM4vu2I3eGK399sFXe1YHT0cn4d7OERqm 43DVFB+LmGdI2zO3cqmlnod6Qoeo9Wl5yAHJPBNU3jv1zgjsXwATl6d7S1YzoxUuATIC IzaQ== X-Gm-Message-State: ALQs6tC9qy7hB8ixx/HjHMhlZOoA/yTxAQgEIH3HozblL9Zx9RP5lsNa 7bgaInk9LpZrvPJ32/g0YcMaoB1QFyQEWocLl7k= X-Received: by 10.55.51.207 with SMTP id z198mr21483199qkz.185.1524491023235; Mon, 23 Apr 2018 06:43:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.144.102 with HTTP; Mon, 23 Apr 2018 06:43:41 -0700 (PDT) In-Reply-To: <20180420094432.13133-2-kai.heng.feng@canonical.com> References: <20180420094432.13133-1-kai.heng.feng@canonical.com> <20180420094432.13133-2-kai.heng.feng@canonical.com> From: Andy Shevchenko Date: Mon, 23 Apr 2018 16:43:41 +0300 Message-ID: Subject: Re: [PATCH v4 2/3] platform/x86: dell-*: Add interface for switchable graphics status query To: Kai-Heng Feng Cc: Matthew Garrett , =?UTF-8?Q?Pali_Roh=C3=A1r?= , Darren Hart , Andy Shevchenko , Mario Limonciello , Takashi Iwai , Platform Driver , Linux Kernel Mailing List , ALSA Development Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 20, 2018 at 12:44 PM, Kai-Heng Feng wrote: > On some Dell platforms, there's a BIOS option "Enable Switchable > Graphics". This information is useful if we want to do different things > based on this value, e.g. disable unused audio controller that comes > with the discrete graphics. > int dell_micmute_led_set(int on); > +bool dell_switchable_gfx_is_enabled(void); I would rather preserve existing API, i.e. - prototype int func(void), where return either state or negative error code. - naming: dell_switchable_gfx_get() -- With Best Regards, Andy Shevchenko