[PATCH] [PATCH 1/1] Add hh2serial GPS support.

Samuel Ortiz sameo at linux.intel.com
Thu Apr 1 15:06:22 PDT 2010


Hi Mohamed,

On Fri, Mar 26, 2010 at 11:03:06AM -0400, mabbasconnman at gmail.com wrote:
> From: Mohamed Abbas <mohamed.abbas at intel.com>
> 
> This patch to turn on/off hh2serial GPS device on offline mode
> change. In this patch we control the device power by writing to
> /sys entries, this will be changed once we add rfkill support to
> the driver.
Patch applied. I had to fix a couple of whitespace and tab vs whitespace
issues.
Also, I fixed this:

> +static int set_reg(char *key, char *value)
> +{
> +	FILE *reg_file;
> +
> +	reg_file = fopen(key, "w");
> +	if (!reg_file)
> +		return -errno;
> +
> +	fprintf(reg_file, value);
This should be: fprintf(reg_file, "%s", value);

Cheers,
Samuel.

-- 
Intel Open Source Technology Centre
http://oss.intel.com/



More information about the connman mailing list