lkml.org 
[lkml]   [2010]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] hwmon: Add support for JEDEC JC 42.4 compliant temperature sensors
On Sun, 11 Jul 2010 07:53:04 -0700
Guenter Roeck <guenter.roeck@ericsson.com> wrote:

> +static int jc42_probe(struct i2c_client *new_client,
> + const struct i2c_device_id *id)
> +{
> + struct jc42_data *data;
> + int config, cap, err;
> +
> + data = kzalloc(sizeof(struct jc42_data), GFP_KERNEL);
> + if (!data) {
> + err = -ENOMEM;
> + goto exit;
> + }
> +
> + i2c_set_clientdata(new_client, data);
> + data->valid = false;

I think it would be acceptable to assume that memset(..., 0, ...) sets
a bool to `false' ;)


> + mutex_init(&data->update_lock);


\
 
 \ /
  Last update: 2010-07-13 00:53    [W:0.053 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site