Lines Matching full:qs
766 struct qcom_socinfo *qs; in qcom_socinfo_probe() local
777 qs = devm_kzalloc(&pdev->dev, sizeof(*qs), GFP_KERNEL); in qcom_socinfo_probe()
778 if (!qs) in qcom_socinfo_probe()
781 qs->attr.family = "Snapdragon"; in qcom_socinfo_probe()
782 qs->attr.machine = socinfo_machine(&pdev->dev, in qcom_socinfo_probe()
784 qs->attr.soc_id = devm_kasprintf(&pdev->dev, GFP_KERNEL, "%u", in qcom_socinfo_probe()
786 qs->attr.revision = devm_kasprintf(&pdev->dev, GFP_KERNEL, "%u.%u", in qcom_socinfo_probe()
789 if (!qs->attr.soc_id || !qs->attr.revision) in qcom_socinfo_probe()
793 qs->attr.serial_number = devm_kasprintf(&pdev->dev, GFP_KERNEL, in qcom_socinfo_probe()
796 if (!qs->attr.serial_number) in qcom_socinfo_probe()
800 qs->soc_dev = soc_device_register(&qs->attr); in qcom_socinfo_probe()
801 if (IS_ERR(qs->soc_dev)) in qcom_socinfo_probe()
802 return PTR_ERR(qs->soc_dev); in qcom_socinfo_probe()
804 socinfo_debugfs_init(qs, info, item_size); in qcom_socinfo_probe()
809 platform_set_drvdata(pdev, qs); in qcom_socinfo_probe()
816 struct qcom_socinfo *qs = platform_get_drvdata(pdev); in qcom_socinfo_remove() local
818 soc_device_unregister(qs->soc_dev); in qcom_socinfo_remove()
820 socinfo_debugfs_exit(qs); in qcom_socinfo_remove()