Dne 08. 04. 21 v 12:38 Takashi Sakamoto napsal(a): >> static DEVICE_ATTR(number, 0444, card_number_show_attr, NULL); > > Use DEVICE_ATTR_RO() instead. My proposal is consistent with the existing code. The cleanups should go on top. Jaroslav -- Jaroslav Kysela <perex@xxxxxxxx> Linux Sound Maintainer; ALSA Project; Red Hat, Inc.