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

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

#include "dell-wmi-sysman.h"

enum int_properties {};

get_instance_id(integer);

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

/**
 * validate_integer_input() - Validate input of current_value against lower and upper bound
 * @instance_id: The instance on which input is validated
 * @buf: Input value
 */
static int validate_integer_input(int instance_id, char *buf)
{}

attribute_s_property_show(display_name_language_code, integer);
static struct kobj_attribute integer_displ_langcode =;

attribute_s_property_show(display_name, integer);
static struct kobj_attribute integer_displ_name =;

attribute_n_property_show(default_value, integer);
static struct kobj_attribute integer_default_val =;

attribute_property_store(current_value, integer);
static struct kobj_attribute integer_current_val =;

attribute_s_property_show(dell_modifier, integer);
static struct kobj_attribute integer_modifier =;

attribute_n_property_show(min_value, integer);
static struct kobj_attribute integer_lower_bound =;

attribute_n_property_show(max_value, integer);
static struct kobj_attribute integer_upper_bound =;

attribute_n_property_show(scalar_increment, integer);
static struct kobj_attribute integer_scalar_increment =;

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

static struct attribute *integer_attrs[] =;

static const struct attribute_group integer_attr_group =;

int alloc_int_data(void)
{}

/**
 * populate_int_data() - Populate all properties of an instance under integer attribute
 * @integer_obj: ACPI object with integer data
 * @instance_id: The instance to enumerate
 * @attr_name_kobj: The parent kernel object
 */
int populate_int_data(union acpi_object *integer_obj, int instance_id,
			struct kobject *attr_name_kobj)
{}

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