modules/batt_health/sys.c
static bool sys_param_int_set_retry(const char *path, int value, int max_retry,
				unsigned long usec)
{
	bool is_success = false;
	int i;

	for (i = 0; ((i < max_retry) && (is_success == false)); i++) {
		is_success = sys_param_int_set(path, value);
		if (is_success == false)
			usleep(usec);
	}

	return is_success;
}
/* Writes an integer value to a sysfs file with retries on fail */
Writes an integer value to a sysfs file with retries on fail
Writes an integer value to a sysfs file with retries on fail
static bool sys_param_int_set_retry(const char *path, int value, int max_retry,
				unsigned long usec)
{
	bool is_success = false;
	int i;
	for (i = 0; ((i < max_retry) && (is_success == false)); i++) {
		is_success = sys_param_int_set(path, value);
		if (is_success == false)
			usleep(usec);
	}
	return is_success;
}
static bool sys_param_int_set_retry ( const char * path , int value , int max_retry , unsigned long usec ) { bool is_success = false ; int i ; for ( i = 0 ; ( ( i < max_retry ) && ( is_success == false ) ) ; i ++ ) { is_success = sys_param_int_set ( path , value ) ; if ( is_success == false ) usleep ( usec ) ; } return is_success ; }
Writes an integer value to a sysfs file with retries on fail
Writes an integer value to a sysfs file with retries on fail