/* Exchange data format to be used in this settings  */
static int ircomm_param_data_format(void *instance, irda_param_t *param, int get)
/* Exchange data format to be used in this settings  */
static int ircomm_param_data_format(void *instance, irda_param_t *param, int get)
{
	struct ircomm_tty_cb *self = (struct ircomm_tty_cb *) instance;
	IRDA_ASSERT(self != NULL, return -1;);
	IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;);
	if (get)
		param->pv.i = self->settings.data_format;
	else
		self->settings.data_format = (__u8) param->pv.i;
	return 0;
}