linux/sound/soc/intel/avs/sysfs.c
Pierre-Louis Bossart 94001147a0
ASoC: Intel: avs: clarify Copyright information
For some reason a number of files included the "All rights reserved"
statement. Good old copy-paste made sure this mistake proliferated.

Remove the "All rights reserved" in all Intel-copyright to align with
internal guidance.

Acked-by: Cezary Rojewski <cezary.rojewski@intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://lore.kernel.org/r/20240503140359.259762-7-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2024-05-06 23:59:39 +09:00

36 lines
885 B
C

// SPDX-License-Identifier: GPL-2.0-only
//
// Copyright(c) 2021-2024 Intel Corporation
//
// Authors: Cezary Rojewski <cezary.rojewski@intel.com>
// Amadeusz Slawinski <amadeuszx.slawinski@linux.intel.com>
//
#include <linux/sysfs.h>
#include "avs.h"
static ssize_t fw_version_show(struct device *dev, struct device_attribute *attr, char *buf)
{
struct avs_dev *adev = to_avs_dev(dev);
struct avs_fw_version *fw_version = &adev->fw_cfg.fw_version;
return sysfs_emit(buf, "%d.%d.%d.%d\n", fw_version->major, fw_version->minor,
fw_version->hotfix, fw_version->build);
}
static DEVICE_ATTR_RO(fw_version);
static struct attribute *avs_fw_attrs[] = {
&dev_attr_fw_version.attr,
NULL
};
static const struct attribute_group avs_attr_group = {
.name = "avs",
.attrs = avs_fw_attrs,
};
const struct attribute_group *avs_attr_groups[] = {
&avs_attr_group,
NULL
};