lkml.org 
[lkml]   [2012]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRE: [PATCH 1/1] TPM: STMicroelectronics ST33 I2C V1.2.0
Variable interrupts value must be 0 or 1. This restriction is defined by the fact of using the bool parameter (true or false)

Regards,

Mathias Leblanc
________________________________________
From: Rusty Russell [rusty@ozlabs.org]
Sent: 08 November 2012 13:18
To: Mathias LEBLANC; Kent Yoder; Rajiv Andrade; Marcel Selhorst; Sirrix AG; tpmdd-devel@lists.sourceforge.net
Cc: linux-kernel@vger.kernel.org; Jean-Luc BLANC; Mathias LEBLANC
Subject: Re: [PATCH 1/1] TPM: STMicroelectronics ST33 I2C V1.2.0

Mathias Leblanc <mathias.leblanc@st.com> writes:
> +static int interrupts ;
> +module_param(interrupts, bool, 0444);
> +MODULE_PARM_DESC(interrupts, "Enable interrupts");
> +
> +static int power_mgt = 1;
> +module_param(power_mgt, bool, 0444);
> +MODULE_PARM_DESC(power_mgt, "Power Management");

These are not bools, so why does module_param describe them as bool?

Cheers,
Rusty.

\
 
 \ /
  Last update: 2012-11-12 11:01    [W:3.263 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site