Merge pull request #273 from NOVBobLee/pr_patch
Some checks failed
build-deploy-assets / build (push) Has been cancelled
deploy-github-page / build (push) Has been cancelled
status-checks / validate (push) Has been cancelled

Correct the function type
This commit is contained in:
Jim Huang 2024-10-09 00:56:51 +08:00 committed by GitHub
commit 756871e427
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,7 +20,7 @@ static ssize_t myvariable_show(struct kobject *kobj,
}
static ssize_t myvariable_store(struct kobject *kobj,
struct kobj_attribute *attr, char *buf,
struct kobj_attribute *attr, const char *buf,
size_t count)
{
sscanf(buf, "%d", &myvariable);
@ -28,7 +28,7 @@ static ssize_t myvariable_store(struct kobject *kobj,
}
static struct kobj_attribute myvariable_attribute =
__ATTR(myvariable, 0660, myvariable_show, (void *)myvariable_store);
__ATTR(myvariable, 0660, myvariable_show, myvariable_store);
static int __init mymodule_init(void)
{