Two new acpi modules, acpi_wmi and acpi_hp

Michael freebsdusb at bindone.de
Sun Jun 21 16:27:32 UTC 2009


Rui Paulo wrote:
> On 21 Jun 2009, at 15:08, Rui Paulo wrote:
> 
>> On 21 Jun 2009, at 12:20, Michael wrote:
>>
>>> Hello,
>>>
>>> I wrote two new acpi modules last year and finally found the time to fix
>>> them, add some missing features and write man pages.
>>
>> Michael, this is great work! I'll review and see if we can ship it
>> with 8.0!
> 
> Michael, this looks good, but there are two style nits that we need to fix.
> * we should try not going over the 80 column mark
> * add a empty new line before every return
> 
> If you could send me a new patch for 8.0 with these fixes, I'll commit
> it (unless someone else has objections).
> 
> Regards,
> -- 
> Rui Paulo
> 

Hi Rui,

hmm style(9) doesn't say anything about columns or return statements in
this context (maybe it should be updated?!?).

Anyway, when saying adding an empty line before every return statement,
do you also mean conditional return statements:

So e.g.

int func()
{
  int a;

  if (!a)
	return 0;
  return 1;
}

Should be:


int func()
{
  int a;

  if (!a)

	return 0;

  return 1;
}

or

int func()
{
  int a;

  if (!a) {

	return 0;
  }

  return 1;
}
??
Thanks
Michael


More information about the freebsd-acpi mailing list