linux/drivers/platform/x86/dell/dell-wmi-sysman/enum-attributes.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Functions corresponding to enumeration type attributes under
 * BIOS Enumeration GUID for use with dell-wmi-sysman
 *
 *  Copyright (c) 2020 Dell Inc.
 */

#include "dell-wmi-sysman.h"

get_instance_id(enumeration);

static ssize_t current_value_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf)
{}

/**
 * validate_enumeration_input() - Validate input of current_value against possible values
 * @instance_id: The instance on which input is validated
 * @buf: Input value
 */
static int validate_enumeration_input(int instance_id, const char *buf)
{}

attribute_s_property_show(display_name_language_code, enumeration);
static struct kobj_attribute displ_langcode =;

attribute_s_property_show(display_name, enumeration);
static struct kobj_attribute displ_name =;

attribute_s_property_show(default_value, enumeration);
static struct kobj_attribute default_val =;

attribute_property_store(current_value, enumeration);
static struct kobj_attribute current_val =;

attribute_s_property_show(dell_modifier, enumeration);
static struct kobj_attribute modifier =;

attribute_s_property_show(dell_value_modifier, enumeration);
static struct kobj_attribute value_modfr =;

attribute_s_property_show(possible_values, enumeration);
static struct kobj_attribute poss_val =;

static ssize_t type_show(struct kobject *kobj, struct kobj_attribute *attr,
			 char *buf)
{}
static struct kobj_attribute type =;

static struct attribute *enumeration_attrs[] =;

static const struct attribute_group enumeration_attr_group =;

int alloc_enum_data(void)
{}

/**
 * populate_enum_data() - Populate all properties of an instance under enumeration attribute
 * @enumeration_obj: ACPI object with enumeration data
 * @instance_id: The instance to enumerate
 * @attr_name_kobj: The parent kernel object
 * @enum_property_count: Total properties count under enumeration type
 */
int populate_enum_data(union acpi_object *enumeration_obj, int instance_id,
			struct kobject *attr_name_kobj, u32 enum_property_count)
{}

/**
 * exit_enum_attributes() - Clear all attribute data
 *
 * Clears all data allocated for this group of attributes
 */
void exit_enum_attributes(void)
{}