[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180308163837.myfmnowz5ogto52w@pali>
Date: Thu, 8 Mar 2018 17:38:37 +0100
From: Pali Rohár <pali.rohar@...il.com>
To: Kai-Heng Feng <kai.heng.feng@...onical.com>
Cc: mjg59@...f.ucam.org, dvhart@...radead.org, andy@...radead.org,
mario.limonciello@...l.com, tiwai@...e.com,
platform-driver-x86@...r.kernel.org, linux-kernel@...r.kernel.org,
alsa-devel@...a-project.org
Subject: Re: [PATCH v2 2/3] platform/x86: dell-*: Add interface for
switchable graphics status query
On Thursday 08 March 2018 17:10:22 Kai-Heng Feng wrote:
> +int dell_switchable_gfx_enabled(bool *enabled);
What about following API?
bool dell_switchable_gfx_is_enabled(void);
Are you really interested in errors? Then what about?
int dell_switchable_gfx_is_enabled(void);
with e.g.
< 0 - error
= 0 - disabled
> 0 - enabled
--
Pali Rohár
pali.rohar@...il.com
Download attachment "signature.asc" of type "application/pgp-signature" (196 bytes)
Powered by blists - more mailing lists